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
>
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)) {
2 matches
Mail list logo