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 boolean
directly
Any tips of which one I should use?
/Jos� Jeria
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

