src/Uri.php
/**
     * Filter a query string key or value, or a fragment.
     */
Filter a query string key or value, or a fragment.
Filter a query string key or value or a fragment .
private function filterQueryOrFragment(string $value) : string
    {
        $value = $this->filterInvalidUtf8($value);
        return preg_replace_callback(
            '/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/u',
            [$this, 'urlEncodeChar'],
            $value
        );
    }
private function filterQueryOrFragment ( string $ value ) : string { $ value = $ this -> filterInvalidUtf8 ( $ value ) ; return preg_replace_callback ( '/(?:[^' . self :: CHAR_UNRESERVED . self :: CHAR_SUB_DELIMS . '%:@\/\?]+|%(?![A-Fa-f0-9]{2}))/u' , [ $ this , 'urlEncodeChar' ] , $ value ) ; }
Filter a query string key or value, or a fragment.
Filter a query string key or value or a fragment .