note 70937 added to function.str-ireplace
| From: | RenéJohnson at osu1 dot php dot net | Date: | Sun, 05 Nov 2006 08:37:22 +0000 |
| Subject: | note 70937 added to function.str-ireplace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-119401@lists.php.net to get a copy of this message | ||
str_ireplace for php below version 5. :)
if(!function_exists('str_ireplace')) {
function str_ireplace($search,$replace,$subject) {
$search = preg_quote($search, "/");
return preg_replace("/".$search."/i", $replace, $subject); } }
----
Server IP: 64.71.164.2
Probable Submitter: 67.184.90.34
----
Manual Page -- http://www.php.net/manual/en/function.str-ireplace.php
Edit -- https://master.php.net/note/edit/70937
Del: integrated -- https://master.php.net/note/delete/70937/integrated
Del: useless -- https://master.php.net/note/delete/70937/useless
Del: bad code -- https://master.php.net/note/delete/70937/bad+code
Del: spam -- https://master.php.net/note/delete/70937/spam
Del: non-english -- https://master.php.net/note/delete/70937/non-english
Del: in docs -- https://master.php.net/note/delete/70937/in+docs
Del: other reasons-- https://master.php.net/note/delete/70937
Reject -- https://master.php.net/note/reject/70937
Search -- https://master.php.net/manage/user-notes.php