Horst
> -----Message d'origine-----
> De: Hugh Bothwell [SMTP:hugh_b...@hotmail.com]
> Date: vendredi, 12. avril 2002 16:02
> À: php-w...@lists.php.net
> Objet: [PHP-WIN] Re: String reduce
>
>
> "Kriegers Horst" <Horst.K...@Sport-Toto.ch> wrote in message
> news:1B37564CB0DDD111824D0000F8D05FAF0120EEB9@mail_srv_01.stg.swiss...
> > Hi all,
> >
> > how can I replace the n ; with only one
> >
> > Mot1;;Mot2;;;;;;;;;;;;;Mot3;;;;;;Mot4;;;;;;;Mot5;;;;Mot6
> > ==>
> > Mot1;Mot2;Mot3;Mot4;Mot5;Mot6
>
> alternatively,
>
> $newstr = preg_replace("/;+/",";",$str);
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php