note 80857 modified in function.HttpQueryString-set by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 22:49:12 +0000 |
| Subject: | note 80857 modified in function.HttpQueryString-set by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147384@lists.php.net to get a copy of this message | ||
In case anybody reads this and wonders what the params should be, it takes a key=>value array,
not sure why it says mixed, or if there's other types you can give it.
<?php
$http = new HttpQueryString();
$http->set(array('page' => 1, 'sort' => 'asc'));
?>
Should produce a query string page?page=1&sort=asc
--was--
In case anybody reads this and wonders what the params should be, it takes a key=>value array,
not sure why it says mixed, or if there's other types you can give it.
<?php
$http = new HttpQueryString();
$http->set(array('page' => 1, 'sort' => 'asc'));
?>
Should produce a query string page?page=1&sort=asc
http://php.net/manual/en/function.HttpQueryString-set.php