If you're doing this to pass it through a URL, then use urlencode()
http://www.php.net/urlencode


Vernon wrote:


I want to be able to replace a space that comes from a form field (such as
in 123 My Street) with a + sign.

Can anyone help me with this?

Thanks

-- Regards, Ben Ramsey http://benramsey.com http://www.phpcommunity.org/wiki/People/BenRamsey

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



Reply via email to