Re: char function

From: Date: Tue, 25 Jun 2002 18:48:45 +0000
Subject: Re: char function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-103813@lists.php.net to get a copy of this message
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 mymail@domain.com.
$str = 'kaleonardo@bonbon.net'; if (preg_match('/@/', $str)) { print "$str does contain the '@' symbol.\n"; } Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com

« previous php.general (#103813) next »