note 88138 added to function.str-ireplace
| From: | ewen dot cumming at gmail dot com | Date: | Mon, 12 Jan 2009 15:38:37 +0000 |
| Subject: | note 88138 added to function.str-ireplace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-149095@lists.php.net to get a copy of this message | ||
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:
$needle = preg_quote($needle);
----
Server IP: 64.71.164.2
Probable Submitter: 82.95.137.4
----
Manual Page -- http://www.php.net/manual/en/function.str-ireplace.php
Edit -- https://master.php.net/note/edit/88138
Del: integrated -- https://master.php.net/note/delete/88138/integrated
Del: useless -- https://master.php.net/note/delete/88138/useless
Del: bad code -- https://master.php.net/note/delete/88138/bad+code
Del: spam -- https://master.php.net/note/delete/88138/spam
Del: non-english -- https://master.php.net/note/delete/88138/non-english
Del: in docs -- https://master.php.net/note/delete/88138/in+docs
Del: other reasons-- https://master.php.net/note/delete/88138
Reject -- https://master.php.net/note/reject/88138
Search -- https://master.php.net/manage/user-notes.php