Re: removing ALL whitespace from a string
| From: | Jordan S. Jones | Date: | Mon, 11 Mar 2002 16:58:15 +0000 |
| Subject: | Re: removing ALL whitespace from a string | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-88038@lists.php.net to get a copy of this message | ||
You can use a regular expression for that.. However, I don't have that right
here..
Jordan
"Lee P Reilly" <lreilly@lanl.gov> wrote in message
news:3C8CE1AA.7C43923B@lanl.gov...
> Can somebody tell me if there is a function that will remove *all*
> whitespace (\n, \r, \t, \w, etc) from a string i.e. from the beginning,
> the end, and the middle?. Something like chop(), trim()?
>
> e.g. input = " 1 2 3 ad "
> e.g. output = "123ad"
>
> Thanks,
>
> Lee
>