RE: [PHP] How do I do to update part of a string?

2001-01-15 Thread Maxim Maletsky
if it is a simple del then use str_replace... however if there's a more complicated logic, then you will need an ereg_replace or preg_replace... will be heavier but more capable.. I use it on certain 10.000 words articles. And I replace not a big chunk of code but some few words in a big chunk.

Re: [PHP] How do I do to update part of a string?

2001-01-15 Thread Josh G
You can always use the simple str_replace or my old fave, $newstring=implode($withthis,explode($this,$oldstring)); replaces all instances of $this with $withthis in $oldstring Gfunk - http://www.gfunk007.com/ I sense much beer in you. Beer leads to intoxication, intoxication t