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

From: Date: Wed, 24 Jul 2002 09:08:40 +0000
Subject: Re: trim away x > 1 number of spaces from a strin
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109276@lists.php.net to get a copy of this message
$new = preg_replace('/[ ]{2,}/',""$old); HTH Andrey ----- Original Message ----- From: "Victor Spång Arthursson" <scooterbabe@mac.com> To: <php-general@lists.php.net> 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

« previous php.general (#109276) next »