note 81630 deleted from function.preg-match by tularis

From: Date: Thu, 03 Jul 2008 21:36:44 +0000
Subject: note 81630 deleted from function.preg-match by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-141138@lists.php.net to get a copy of this message
Note Submitter: andy at jmedia web dawt com ---- If you want to test for FALSE use === instead. $result = preg_match("/badtest/J",$string); if($result === FALSE) { // bad query error_log("Whoops!"); } else { echo("Matched " . $result . " times"); }

« previous php.notes (#141138) next »