$str = str_replace(' ', ' ', $str);
$str = preg_replace('/\s+/', ' ', $str);
$str = ereg_replace('[[:space:]]+', ' ', $str);
Good Luck,
Firman
- Original Message -
From: "Merlin" <[EMAIL PROTECTED]>
To:
> I was searching for a php function which fills empty spaces in string
> varibales with " ", but could not find one.
Wouldn't str_replace do it?
http://jp2.php.net/str_replace
--
Yoroshiku!
Dave G
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hi Merlin,
guess there is no php function which handles this, but you can easily
use str_replace to do this.
http://php.net/str_replace
-- red
Am Montag, 22. März 2004 13:02 schrieb Merlin:
> Hi there,
>
> I was searching for a php function which fills empty spaces in string
> varibales 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
4 matches
Mail list logo