[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
Re: [PHP] trim away x 1 number of spaces from a strin
$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
Re: [PHP] trim away x 1 number of spaces from a strin
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 the company. Samuel Clemens -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php