note 87301 deleted from function.preg-match-all by danbrown
| From: | danbrown@php.net | Date: | Fri, 30 Jan 2009 15:39:51 +0000 |
| Subject: | note 87301 deleted from function.preg-match-all by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149983@lists.php.net to get a copy of this message | ||
Note Submitter: AlexCorzo
----
meaneye,
On your code you may want to use strtolower, so the search is not case sensitive...
<?php
$db_text = bin2hex(stripslashes(utf8_decode(strtolower($db_text))));
$word = bin2hex(strtolower($word));
$found = preg_match_all("/($word)+/i", $db_text, $matches);
?>
Cheers,