note 88138 deleted from function.str-ireplace by danbrown
| From: | danbrown@php.net | Date: | Mon, 18 May 2009 14:46:36 +0000 |
| Subject: | note 88138 deleted from function.str-ireplace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155678@lists.php.net to get a copy of this message | ||
Note Submitter: ewen dot cumming at gmail dot com
----
Thanks for the highlightStr function sawdust - so that it also copes with special characters in the
needle I added the following line before the preg_match_all line:
<?php $needle = preg_quote($needle); ?>