Re: Proposed Function: urlencode_array
| From: | Sara Golemon | Date: | Fri, 29 Aug 2003 19:02:28 +0000 |
| Subject: | Re: Proposed Function: urlencode_array | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4253@lists.php.net to get a copy of this message | ||
> Can this not be done easily with array_walk?
>
Yes, though the primary purpose here is to have a method to create a
form-encoded query string internally, exporting it to userspace is just a
"why the heck not" side-effect.
> I think this might also encourge people to use extremly long query
> strings, which will break when it gets to a certain length. I
> believe, off hand, 255 bytes is what is suggested max length for a
> query string.
>
For HTTP/1.0 GET query_strings yes (2048 bytes for HTTP/1.1 GET), but for
POST data (which uses the same form encoding) the length of the query string
is not limited.
Note: I don't have a great deal invested in this, if there's no desire to
use this my heart won't be broken.
-Sara