For those who are using PECL pecl_http 2, you need to refer to HttpQueryString, which is now implemented under http namespace. Therefore,
<?php new \http\QueryString(); ?>
http_build_str
(PECL pecl_http >= 0.23.0)
http_build_str — Build query string
Beschreibung
string http_build_str
( array
$query
[, string $prefix
[, string $arg_separator = ini_get("arg_separator.output")
]] )Opponent to parse_str().
Parameter-Liste
-
query -
associative array of query string parameters
-
prefix -
top level prefix
-
arg_separator -
argument separator to use (by default the INI setting arg_separator.output will be used, or "&" if neither is set
Rückgabewerte
Returns the built query as string on successIm Fehlerfall wird FALSE zurückgegeben..
Siehe auch
- standard http_build_query() - Erstellen eines URL-kodierten Query-Strings
- http_build_url() - Build a URL
g dot kuizinas at anuary dot com ¶
3 months ago
