cageman Posted March 4, 2008 Posted March 4, 2008 (edited) hey guys, im making a script that gets text in a string like: $string="hello world" Then i want to check it for certain words in it with the function stringinstr() works fine, but just like the topic title says i want a definition file. I need to check for alot of differenter works and i dont want 100 if statements in my script. what is a nice way to make such a file? any ideas? edit: maybe good to say that i only need to give another variabele the value 1 if the text is found and if not it just stays 0 $check=0 $string="hello world" If stringinstr($string,"hello") Then $check=1 Endif If $check=1 Then do some things hope this helps Edited March 4, 2008 by cageman
cageman Posted March 4, 2008 Author Posted March 4, 2008 _FileReadToArrayFor...NextStringInStrthank you works fine:)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now