Re: Something like trim()
| From: | Cam Dunstan | Date: | Thu, 30 Jan 2003 15:51:48 +0000 |
| Subject: | Re: Something like trim() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18238@lists.php.net to get a copy of this message | ||
check out str_replace() - you`ll find it in the "string functions"
section of the manual.
----- Original Message -----
From: "Bobo Wieland" <dev@elstudion.com>
To: <php-windows@lists.php.net>
Sent: Thursday, January 30, 2003 6:26 PM
Subject: [PHP-WIN] Something like trim()
> Is there an easy way to get rid off white space characters in a string?
Like
> trim() but for the whole string and leaving single white spaces as they
are
> but removing all occurences of '\t','\n' and ' '(leaving a
> single '
> ')...
>
> I've tried the manual but couldn't find anything...
>
>
>
> . bobo . www.elstudion.com . www.elstudion.com/bobo .
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>