RE: [PHP] remove space
| From: | Kim Madsen | Date: | Tue, 22 Mar 2005 10:03:25 +0000 |
| Subject: | RE: [PHP] remove space | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211277@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: William Stokes [mailto:kalles@operamail.com]
> Sent: Tuesday, March 22, 2005 10:49 AM
> How can I remove a space character from variable value.
>
> for example:
> change
> $name = "John Doe";
> to
> $name = "JohnDoe";
>
> The blank space needs to be removed from the string. How?
Did You search? http://dk.php.net/manual-lookup.php?pattern=replace
Str_replace, ereg_replace, preg_replace is just a few friends, that will
help You. Php.net is Your best friend ;-)
--
Med venlig hilsen / best regards
ComX Networks A/S
Kim Madsen
Systemudvikler/systemdeveloper