Hi,
Wednesday, August 21, 2002, 11:22:36 PM, you wrote:
JJ> I want to find a certain text in a string and i want it to return me a
JJ> boolean.
JJ> What is the best thing to do this?
JJ> a) ereg("search for this", $string);// returns
JJ> int(1) if true, bool(false) if
I want to find a certain text in a string and i want it to return me a
boolean.
What is the best thing to do this?
a) ereg("search for this", $string);// returns
int(1) if true, bool(false) if not
b) strpos($nav->userAgent, "search for this") > 0// gives me a boole
2 matches
Mail list logo