Posted by Schraalhans Keukenmeester on 05/25/07 05:28
At Thu, 24 May 2007 15:26:54 -0700, Ben let his monkeys type: > I want to do the following: > > replace __abc__ with <b>abc</b> in a string > > Any help? > > Ben Don't use regex if not necessary. $fixedstring = str_replace ('__abc__','<b>abc</b>',$yourstring,[$count]); $count, if supplied, tallies the number of replacements made. HTH Sh.
[Reply to this message]
Copyright © 2005-2006 Powered by Custom PHP Programming