WordPress\AiClientDependencies\Psr\Http\Message
UriInterface::withQuery
Return an instance with the specified query string.
This method MUST retain the state of the current instance, and return an instance that contains the specified query string.
Users can provide both encoded and decoded query characters. Implementations ensure the correct encoding as outlined in getQuery().
An empty query string value is equivalent to removing the query string.
Method of the class: UriInterface{}
No Hooks.
Returns
static. A new instance with the specified query string.
Usage
$UriInterface = new UriInterface(); $UriInterface->withQuery( $query ): UriInterface;
- $query(string) (required)
- The query string to use with the new instance.
UriInterface::withQuery() UriInterface::withQuery code WP 7.0
public function withQuery(string $query): UriInterface;