note 85307 deleted from function.strpos by tularis
| From: | tularis@php.net | Date: | Mon, 25 Aug 2008 11:42:51 +0000 |
| Subject: | note 85307 deleted from function.strpos by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-143807@lists.php.net to get a copy of this message | ||
Note Submitter: Wartosh
Reason: useless
----
Hi again,
My code, in previews note wasn't correct ... So here's the good one :
<?
$myString = "Hi, this is good!";
$srchStrg = ".*thi.* goo.*";
$srchRes = preg_match("/$srchStrg/", $myString);
if ( $srchRes != 0 )
echo "TRUE: string has been found :-)";
else
echo "FALSE: string wasn't found :'-(";
?>
Sincerely