RE: [PHP-WIN] Re: String reduce
| From: | Kriegers Horst | Date: | Mon, 15 Apr 2002 06:44:59 +0000 |
| Subject: | RE: [PHP-WIN] Re: String reduce | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-13095@lists.php.net to get a copy of this message | ||
Thanks to all who helped me
Horst
> -----Message d'origine-----
> De: Hugh Bothwell [SMTP:hugh_bothwell@hotmail.com]
> Date: vendredi, 12. avril 2002 16:02
> À: php-windows@lists.php.net
> Objet: [PHP-WIN] Re: String reduce
>
>
> "Kriegers Horst" <Horst.Kriegers@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