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

search for in the

HttpQueryString::singleton> <HttpQueryString::mod
Last updated: Fri, 30 Jan 2009

view this page in

HttpQueryString::set

(PECL pecl_http >= 0.22.0)

HttpQueryString::setクエリ文字列パラメータを設定する

説明

public string HttpQueryString::set ( mixed $params )

クエリ文字列エントリを設定します。NULL を指定すると、変数を削除します。

パラメータ

params

追加するクエリ文字列パラメータ。

返り値

現在のクエリ文字列を返します。



add a note add a note User Contributed Notes
HttpQueryString::set
jerome at rainstormconsulting dot com
04-Feb-2008 06: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::singleton> <HttpQueryString::mod
Last updated: Fri, 30 Jan 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites