php.net/strstr Will return the string instead of true, but it will probably work for whatever you want to do...
if ( strstr($string1, $string2) ) works perfectly well On Tuesday 25 June 2002 03:23 am, Leo wrote: > i want a logical function (true or false) that search a character into a > string.(like indexOf() in javascript) > example: i want to find char '@ ' in the string [EMAIL PROTECTED] > > leo -- To Believe without evidence and demonstration is an act of ignorance and folly. Volney -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php