for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Copyright (c) 2010–2019 Ryan Parman <http://ryanparman.com>.
* Copyright (c) 2016–2019 Contributors.
*
* http://opensource.org/licenses/Apache2.0
*/
declare(strict_types=1);
namespace SimplePie\UtilityPack\Util;
* A standardized builder for URI query strings.
* @see <https://tools.ietf.org/html/rfc1738>
class QueryString
{
* Build a query string from a given set of key-value pairs.
* @param string[] $qsa A set of key-value pairs to convert into a query string.
* @return string A query string.
public static function build(array $qsa): string
return \http_build_query($qsa, '', '&', \PHP_QUERY_RFC1738);
}