YoastSEO_Vendor\GuzzleHttp\Psr7
Uri::generateQueryString() private Yoast 1.0
{} Это метод класса: Uri{}
Хуков нет.
Возвращает
Строку
. Null. Ничего.
Использование
$result = Uri::generateQueryString( $key, $value );
- $key(строка) (обязательный)
- -
- $value(строка/null) (обязательный)
- -
Код Uri::generateQueryString() Uri::generateQueryString Yoast 16.1.1
private static function generateQueryString($key, $value)
{
// Query string separators ("=", "&") within the key or value need to be encoded
// (while preventing double-encoding) before setting the query string. All other
// chars that need percent-encoding will be encoded by withQuery().
$queryString = \strtr($key, self::$replaceQuery);
if ($value !== null) {
$queryString .= '=' . \strtr($value, self::$replaceQuery);
}
return $queryString;
}