(preg_match ?

From: Date: Thu, 26 Jul 2001 23:48:25 +0000
Subject: (preg_match ?
Groups: php.db 
Request: Send a blank email to php-db+get-10817@lists.php.net to get a copy of this message
What's wrong with this use of preg_match? $search = "TheName" $data = "TheName,TheAddress,ThePhone" if (preg_match('"/\b'.$search.'\b/i"', $data)) { echo "True<br>"; } else { echo "False<br>"; } I am trying to see if the search name matches exactly a name in the $data. Thanks Dave

« previous php.db (#10817) next »