Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[PHP-WIN] Re: String reduce

0 views
Skip to first unread message

Kriegers Horst

unread,
Apr 15, 2002, 2:44:59 AM4/15/02
to php-w...@lists.php.net
Thanks to all who helped me

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

0 new messages