array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'uri-rfc3986-uri.getscheme.php', 1 => 'Uri\\Rfc3986\\Uri::getScheme', 2 => 'Retrieve the normalized scheme component', ), 'up' => array ( 0 => 'class.uri-rfc3986-uri.php', 1 => 'Uri\\Rfc3986\\Uri', ), 'prev' => array ( 0 => 'uri-rfc3986-uri.getrawusername.php', 1 => 'Uri\\Rfc3986\\Uri::getRawUsername', ), 'next' => array ( 0 => 'uri-rfc3986-uri.getuserinfo.php', 1 => 'Uri\\Rfc3986\\Uri::getUserInfo', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uri/uri/rfc3986/uri/getscheme.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 8 >= 8.5.0)
Uri\Rfc3986\Uri::getScheme — Retrieve the normalized scheme component
Questa funzione non contiene parametri.
Returns the normalized scheme component as a string if the scheme component exists, null is returned otherwise.
Example #1 Uri\Rfc3986\Uri::getScheme() basic example
<?php
$uri = new \Uri\Rfc3986\Uri("https://example.com");
echo $uri->getScheme();
?>Il precedente esempio visualizzerĂ :
https