update page now

Uri\WhatWg\Url::getUnicodeHost

(PHP 8 >= 8.5.0)

Uri\WhatWg\Url::getUnicodeHostRetrieve the host component as an Unicode string

Описание

public Uri\WhatWg\Url::getUnicodeHost(): ?string

Retrieves the host component as a string, which may contain Unicode characters.

Список параметров

Сигнатура функции не содержит параметров.

Возвращаемые значения

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

Примеры

Пример #1 Uri\WhatWg\Url::getUnicodeHost() basic example

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

echo
$url->getUnicodeHost();
?>

Результат выполнения приведённого примера:

example.com

Смотрите также

Добавить

Примечания пользователей

Пользователи ещё не добавляли примечания для страницы
To Top