WordPress\AiClientDependencies\Nyholm\Psr7
Uri::filterQueryAndFragment
Method of the class: Uri{}
No Hooks.
Returns
null. Nothing (null).
Usage
// private - for code of main (parent) class only $result = $this->filterQueryAndFragment( $str ): string;
- $str(required)
- .
Uri::filterQueryAndFragment() Uri::filterQueryAndFragment code WP 7.0
private function filterQueryAndFragment($str): string
{
if (!\is_string($str)) {
throw new \InvalidArgumentException('Query and fragment must be a string');
}
return \preg_replace_callback('/(?:[^' . self::CHAR_UNRESERVED . self::CHAR_SUB_DELIMS . '%:@\/\?]++|%(?![A-Fa-f0-9]{2}))/', [__CLASS__, 'rawurlencodeMatchZero'], $str);
}