$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 from a strin


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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to