RE: [PHP-WIN] Re: String reduce

2002-04-15 Thread Kriegers Horst
Thanks to all who helped me Horst > -Message d'origine- > De: Hugh Bothwell [SMTP:[EMAIL PROTECTED]] > Date: vendredi, 12. avril 2002 16:02 > À:[EMAIL PROTECTED] > Objet: [PHP-WIN] Re: String reduce > > > "Kriegers Horst" <[E

[PHP-WIN] Re: String reduce

2002-04-13 Thread Hugh Bothwell
"Kriegers Horst" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > how can I replace the n ; with only one > > Mot1;;Mot2;Mot3;;Mot4;;;Mot5Mot6 > ==> > Mot1;Mot2;Mot3;Mot4;Mot5;Mot6 alternatively, $newstr = preg_replace("/;+/

[PHP-WIN] Re: String reduce

2002-04-12 Thread Hugh Bothwell
"Kriegers Horst" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi all, > > how can I replace the n ; with only one > > Mot1;;Mot2;Mot3;;Mot4;;;Mot5Mot6 > ==> > Mot1;Mot2;Mot3;Mot4;Mot5;Mot6 > > So that I can explode it in an array. ..