note 88138 modified in function.str-ireplace by felipe

From: Date: Sat, 17 Jan 2009 01:06:13 +0000
Subject: note 88138 modified in function.str-ireplace by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-149351@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: <?php $needle = preg_quote($needle); ?> --was-- 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); http://php.net/manual/en/function.str-ireplace.php

« previous php.notes (#149351) next »