note 52327 deleted from function.str-ireplace by aidan

From: Date: Sun, 24 Jul 2005 04:17:42 +0000
Subject: note 52327 deleted from function.str-ireplace by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-92363@lists.php.net to get a copy of this message
Note Submitter: php programmer at work ---- For Kosta's str_Ireplace function, I think you'll want to lowercase the needle as well as the haystack in the strpos function, ie: while ($pos = strpos(strtolower($haystack), $strtolower($needle), $i)) { ... } In its current form, it only works as expected if the needle is always provided lowercase.

« previous php.notes (#92363) next »