Hi Nick, 

Yes, I thought about that. But, what should I do when the markers are absolutely NOT 
in any sequence. 

I also thought about something like
        $replace[1][1] = "!one!";       //marker
        $replace[1][2] = "hehee";       //replace with
        $replace[1][1] = "test";        //marker
        $replace[1][2] = "foobar";      //replace with
        $replace[1][1] = "repl";        //marker
        $replace[1][2] = "humpty-dumpty";       //replace with
        $replace[1][1] = "blah";        //marker
        $replace[1][2] = "boo";         //replace with

Now, when I would do a loop thingie that goes through all those, then it would be a 
pretty nice and compact solution... 

What about speed issues regarding this solution? 

Tharapita Creations
[dynamic web applications]
Mobile: +372 53 410 610 

-----Original Message-----
From: Nick Wilson [mailto:[EMAIL PROTECTED]] 
Sent: 12. jaanuar 2002. a. 13:53
Subject: Re: [PHP] multiple replaces...

If the 'markers' are in some kind of sequence (like marker1, marker2
etc) you could use a loop.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to