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
"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("/;+/
"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.
..