From ecf42293a5fa5e05ce62a4f4eada208c0c4d49b3 Mon Sep 17 00:00:00 2001 From: Chris Wright Date: Mon, 1 Sep 2014 17:12:24 +0000 Subject: [PATCH] Improve HttpQueryString::get() docs -- Provided by Michael C (wafflestealer654@gmail.com) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@334709 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/http/HttpQueryString/get.xml | 118 +++++-------------------- 1 file changed, 22 insertions(+), 96 deletions(-) diff --git a/reference/http/HttpQueryString/get.xml b/reference/http/HttpQueryString/get.xml index 850d86f5bc..d885bc15ea 100644 --- a/reference/http/HttpQueryString/get.xml +++ b/reference/http/HttpQueryString/get.xml @@ -2,10 +2,12 @@ + HttpQueryString::get - Get (part of) query string + Get the query string or a part thereof + &reftitle.description; @@ -16,17 +18,9 @@ mixeddefval&null; booldeletefalse - - - Get (part of) the query string. - - - The type parameter is either one of the HttpQueryString::TYPE_* constants or a type abbreviation like - "b" for bool, "i" for int, "f" for float, "s" for string, "a" - for array and "o" for a stdClass object. - - + Get the query string or a part thereof + &reftitle.parameters; @@ -35,7 +29,7 @@ key - key of the query string param to retrieve + Key of the query string parameter to retrieve @@ -43,7 +37,15 @@ type - which variable type to enforce + Variable type to enforce for the returned value + + + Either one of the + + HttpQueryString::TYPE_* constants + + or a type abbreviation - "b" for bool, "i" for int, "f" for float, + "s" for string, "a" for array and "o" for a stdClass object. @@ -51,7 +53,7 @@ defval - default value if key does not exist + Default value if key does not exist @@ -59,100 +61,24 @@ delete - whether to remove the key/value pair from the query string + Whether to remove key from the query string + &reftitle.returnvalues; - Returns the value of the query string param or the whole query string if no key was specified on success or defval if key does not exist. + Returns the value of the query string param or the whole query string if + key was not specified. Returns + defval if the specified key + does not exist. - - - - - - - - - - - -