Re: Function to turn "this that" into "this%20that"?
| From: | Dan Lowe | Date: | Sat, 23 Dec 2000 15:10:03 +0000 |
| Subject: | Re: Function to turn "this that" into "this%20that"? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31678@lists.php.net to get a copy of this message | ||
Previously, Ken said:
> Is there a PHP function that generates an escaped URL string, changing
> all special characters in a string that shouldn't appear in URL's into
> %nn? (I.e. Change : to %2E, space to %20, etc.)
>
> I'm sure it's right under my nose, but I couldn't find it.
There's urlencode() although I've had some cases where it didn't function
quite right, so if that happens to you, there is also rawurlencode().
-dan
--
Dan Lowe <dan@tangledhelix.com> http://tangledhelix.com/
The main reason Santa is so jolly is because he knows where all the bad
girls live. -George Carlin