RE: remove space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: William Stokes [mailto:kalles@xxxxxxxxxxxxx]
> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux