Reply to Re: preg_replace() replacing all in loop

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация