private static urlencode_rfc3986 ( mixed $value ) : string | ||
$value | mixed | The value to encode. |
Результат | string |
private static function urlencode_rfc3986($value)
{
if (is_array($value)) {
return array_map(array(__CLASS__, 'urlencode_rfc3986'), $value);
} else {
return str_replace('%7E', '~', rawurlencode($value));
}
}