Yep, that`s better still - a nice succinct little one liner Jill. I avoid the ereg_ function family like the plague myself but that`s my problem, your solution is entirely correct.
----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, February 01, 2003 9:50 PM Subject: RE: [PHP-WIN] Something like trim() > Or just > > $cleanstring = ereg_replace("[ \t\n]+"," ",trim($dirtystring)); > > Jill > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php