note 118237 added to function.http-build-query
| From: | qwert | Date: | Sat, 31 Oct 2015 18:23:44 +0000 |
| Subject: | note 118237 added to function.http-build-query | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-204061@lists.php.net to get a copy of this message | ||
Somethimes I do stupid thinks liket this, and want to share with you guys so you don't do the
same.
$this->params['apikey']= self::APIKEY;
$this->params['metrics']=true;//<-problem
$this->params['output']= 'json';
http_build_query($this->params);
The problem is with param $this->params['metrics']=true;
that will generate "&metrics=1" but I needed "&metrics=true".
Anyway true will be converted to 1
----
Server IP: 72.52.91.14
Probable Submitter: 95.180.112.160
----
Manual Page -- http://php.net/manual/en/function.http-build-query.php
Edit -- https://master.php.net/note/edit/118237
Del: integrated -- https://master.php.net/note/delete/118237/integrated
Del: useless -- https://master.php.net/note/delete/118237/useless
Del: bad code -- https://master.php.net/note/delete/118237/bad+code
Del: spam -- https://master.php.net/note/delete/118237/spam
Del: non-english -- https://master.php.net/note/delete/118237/non-english
Del: in docs -- https://master.php.net/note/delete/118237/in+docs
Del: other reasons-- https://master.php.net/note/delete/118237
Reject -- https://master.php.net/note/reject/118237
Search -- https://master.php.net/manage/user-notes.php