note 118321 added to function.http-build-query
| From: | itsadok at gmail dot com | Date: | Tue, 17 Nov 2015 06:47:36 +0000 |
| Subject: | note 118321 added to function.http-build-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204167@lists.php.net to get a copy of this message | ||
Passing null to $arg_separator is the same as passing an empty string, which is probably not what
you want.
If you need to change the enc_type, use this:
http_build_query($query, null, '&', PHP_QUERY_RFC3986);
Or possibly this:
http_build_query($query, null, ini_get('arg_separator.output'), PHP_QUERY_RFC3986);
But not this:
// BAD CODE!
http_build_query($query, null, null, PHP_QUERY_RFC3986);
----
Server IP: 72.52.91.14
Probable Submitter: 2620:10d:c092:200::1:19c4
----
Manual Page -- http://php.net/manual/en/function.http-build-query.php
Edit -- https://master.php.net/note/edit/118321
Del: integrated -- https://master.php.net/note/delete/118321/integrated
Del: useless -- https://master.php.net/note/delete/118321/useless
Del: bad code -- https://master.php.net/note/delete/118321/bad+code
Del: spam -- https://master.php.net/note/delete/118321/spam
Del: non-english -- https://master.php.net/note/delete/118321/non-english
Del: in docs -- https://master.php.net/note/delete/118321/in+docs
Del: other reasons-- https://master.php.net/note/delete/118321
Reject -- https://master.php.net/note/reject/118321
Search -- https://master.php.net/manage/user-notes.php