note 33221 deleted from function.str-ireplace by didou

From: Date: Thu, 19 Jun 2003 17:20:55 +0000
Subject: note 33221 deleted from function.str-ireplace by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-50666@lists.php.net to get a copy of this message
Note Submitter: jsvlrt@yahoo.com ---- if you're using PHP < 5, you can use eregi_replace to perform this function, note, however that this takes slightly longer as it's searching for regex strings, also, note the output from the following code; <? $needle = "hello"; $haystack = "Hello World"; echo eregi_replace($needle,"<b>$needle</b>",$haystack); ?> the output will be: <b>hello</b> World not <b>Hello</b> World anyone got any suggestions for this, maybe using a regex?

« previous php.notes (#50666) next »