note 12370 deleted from function.str-replace by philip
| From: | philip@php.net | Date: | Fri, 11 Oct 2002 18:49:27 +0000 |
| Subject: | note 12370 deleted from function.str-replace by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37948@lists.php.net to get a copy of this message | ||
I found the following code very helpful for passing full strings with spaces in a URL for
processing. IE is smart enough to escape the spaces, but Netscape does not do it.
$string = str_replace(" ", "%20", $string);
[Ed note: See http://www.php.net/urlencode ]