[PHP] char function

2002-06-25 Thread Leo
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] char function

2002-06-25 Thread Erik Price
On Tuesday, June 25, 2002, at 06: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] $str = '[EMAIL PROTECTED]'; if (preg_match('/@/', $str)) {

Re: [PHP] char function

2002-06-25 Thread Evan Nemerson
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