Posted by Daniel Tryba on 06/28/05 12:09
sicapitan@gmail.com wrote:
[snip]
If you want to post code: make it easy to read: compact and snip the
irrelevant stuff.
> I want to loop through a string and replace the first instance of the
> reg with <!--%ed0--> and the second with <!--%ed1--> etc untill the
> loop has finished. But when I look at the output, the file is filled
> with the last number - any ideas?
Then your code is not complete, I don;'t see any line that outputs
anything. All T see is 1 preg_replace overwriting the same variable
again and again.
Navigation:
[Reply to this message]
|