Back to Uri class

Method buildQuery

public static string
buildQuery
(array $params)
Build a query from an array (reverse of the PHP parse_str()).
Parameters
  • array $params The array of key => value pairs to return as a query string.
Returns
  • string The resulting query string.
Since
  • 1.7.0
-
  • \Joomla\CMS\Uri\parse_str()
  • The parent method is protected, this exposes it as public for B/C
Class: Uri
Project: Joomla

Method buildQuery - Source code

/**
 * Build a query from an array (reverse of the PHP parse_str()).
 *
 * @param   array  $params  The array of key => value pairs to return as a query string.
 *
 * @return  string  The resulting query string.
 *
 * @see     parse_str()
 * @since   1.7.0
 * @note    The parent method is protected, this exposes it as public for B/C
 */
public static function buildQuery(array $params)
{
    return parent::buildQuery($params);
}