array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'uri-whatwg-url.getscheme.php', 1 => 'Uri\\WhatWg\\Url::getScheme', 2 => 'Retrieve the scheme component', ), 'up' => array ( 0 => 'class.uri-whatwg-url.php', 1 => 'Uri\\WhatWg\\Url', ), 'prev' => array ( 0 => 'uri-whatwg-url.getquery.php', 1 => 'Uri\\WhatWg\\Url::getQuery', ), 'next' => array ( 0 => 'uri-whatwg-url.getunicodehost.php', 1 => 'Uri\\WhatWg\\Url::getUnicodeHost', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uri/uri/whatwg/url/getscheme.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

Uri\WhatWg\Url::getScheme

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::getSchemeRetrieve the scheme component

Descrizione

public Uri\WhatWg\Url::getScheme(): string

Retrieves the scheme component.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the scheme component as a string if the scheme component exists, null is returned otherwise.

Esempi

Example #1 Uri\WhatWg\Url::getScheme() basic example

<?php
$url
= new \Uri\WhatWg\Url("https://example.com");

echo
$url->getScheme();
?>

Il precedente esempio visualizzerĂ :

https

Vedere anche: