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)) {
print "$str does contain the '@' symbol.\n";
}
Erik
----
Erik Price
Web Developer Temp
Media Lab, H.H. Brown
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php