Re: [PHP] str_replace weird output

2005-06-02 Thread Andy Pieters
On Thursday 02 June 2005 09:52, [EMAIL PROTECTED] wrote: > But if I do that : > > $texte = 'cd' ; > $original = array('a', 'b', 'c', 'd', 'e', 'f', 'g'); > $modif = array ('c', 'd', 'e', 'f', 'g', 'h', 'i'); > $texte = str_replace($original, $modif, $texte) ; > echo $texte, ' ' ; > ?> > > The resu

[PHP] str_replace weird output

2005-06-02 Thread Johan . Barbier
Hello guys :-) I have a question. I have been using str_replace() quite a lot of times, and never encountered any issue. But this time, something weird happened, and I am wondering wether, in fact, I have never really understood how this function worked, or if there is some kind of bug. If I d