PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

HttpQueryString::toArray> <HttpQueryString::mod
Last updated: Sun, 25 Nov 2007

view this page in

HttpQueryString::set

(PECL pecl_http:0.22.0-1.5.5)

HttpQueryString::set — Set query string params

설명

public string HttpQueryString::set ( mixed $params )

Set query string entry/entries. NULL values will unset the variable.

매개변수

params

query string params to add

반환값

Returns the current query string.



add a note add a note User Contributed Notes
HttpQueryString::set
jerome at rainstormconsulting dot com
04-Feb-2008 08:09
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

HttpQueryString::toArray> <HttpQueryString::mod
Last updated: Sun, 25 Nov 2007
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites