note 118237 rejected from function.http-build-query by jacques
| From: | jacques@php.net | Date: | Mon, 09 Nov 2015 20:02:26 +0000 |
| Subject: | note 118237 rejected from function.http-build-query by jacques | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204124@lists.php.net to get a copy of this message | ||
Note Submitter: qwert
----
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