Re: Replace space from form field using preg_replace
| From: | Red Wingate | Date: | Wed, 17 Mar 2004 20:54:20 +0000 |
| Subject: | Re: Replace space from form field using preg_replace | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180740@lists.php.net to get a copy of this message | ||
str_replace(" ","+",$var);
-- red
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