Re: Fill strings with
| From: | Firman Wandayandi | Date: | Mon, 22 Mar 2004 12:12:37 +0000 |
| Subject: | Re: Fill strings with | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181129@lists.php.net to get a copy of this message | ||
$str = str_replace(' ', ' ', $str);
$str = preg_replace('/\s+/', ' ', $str);
$str = ereg_replace('[[:space:]]+', ' ', $str);
Good Luck,
Firman
----- Original Message -----
From: "Merlin" <news.groups@web.de>
To: <php-general@lists.php.net>
Sent: Monday, March 22, 2004 7:02 PM
Subject: [PHP] Fill strings with
> Hi there,
>
> I was searching for a php function which fills empty spaces in string
> varibales with " ", but could not find one.
>
> Is there such thing?
>
> Thanx for any help,
>
> Merlin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>