RE: [PHP] urlencode vs rawurlencode

From: Date: Fri, 26 Jul 2002 05:04:59 +0000
Subject: RE: [PHP] urlencode vs rawurlencode
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109671@lists.php.net to get a copy of this message
On Fri, 26 Jul 2002 14:00:30 +1000, Martin Towell wrote: >well, doing this: > ><? >echo urlencode(" +&") . "\n"; >echo rawurlencode(" +&") . "\n"; >?> > >I get this: > >+%2B%26 >%20%2B%26 > >so it looks like, if it encodes a char, then rawurlencode() will always >bring it back to the hex value for it, whereas urlencode() will use "+" for >space (dunno about other chars) I've never seen a + for a space. What uses it that way?

« previous php.general (#109671) next »