Re: Something like trim()
| From: | Cam Dunstan | Date: | Sat, 01 Feb 2003 23:14:25 +0000 |
| Subject: | Re: Something like trim() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18291@lists.php.net to get a copy of this message | ||
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: <Jill.Ramonsky@Aculab.com>
To: <php-windows@lists.php.net>
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
>