php.net/str_replace
On Wednesday 24 July 2002 02:05 am, Victor Spång Arthursson wrote:
> Hi!
>
> Could someone help me with a replace that takes all occurances of " ",
> that is space more than one, and replaces them with ""
?
>
> Sincerely
>
> Victor
--
Go to Heaven for the climate, Hell for
$new = preg_replace('/[ ]{2,}/',""$old);
HTH
Andrey
- Original Message -
From: "Victor Spång Arthursson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 24, 2002 12:05 PM
Subject: [PHP] trim away x > 1 number of spaces fro
Hi!
Could someone help me with a replace that takes all occurances of " ",
that is space more than one, and replaces them with ""
?
Sincerely
Victor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
3 matches
Mail list logo