Uri\Rfc3986\Uri::getRawQuery
PHP function
Edit on GitHub ✎
(PHP 8 >= 8.5.0)
Retrieve the raw query component
Description
Uri\Rfc3986\Uri::getRawQuery(): string|null
Retrieves the raw (non-normalized) query component.
Parameters Parameters
Return Values
Returns the raw query component as a String if the query component exists, null is returned otherwise.
Examples
Uri\Rfc3986\Uri::getRawQuery basic example
php
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com?foo=bar");
echo $uri->getRawQuery();
?>The above example will output:
output
foo=barSee Also
Uri\Rfc3986\Uri::getQueryUri\Rfc3986\Uri::withQueryUri\WhatWg\Url::getQuery