Re: [PHP] trim away x > 1 number of spaces from a strin

2002-07-24 Thread Evan Nemerson
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

Re: [PHP] trim away x > 1 number of spaces from a strin

2002-07-24 Thread Andrey Hristov
$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

[PHP] trim away x > 1 number of spaces from a strin

2002-07-24 Thread Victor Spång Arthursson
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