php8.5
Home/ Manual/ whatwg / url/ Uri\WhatWg\Url::__unserialize

Uri\WhatWg\Url::__unserialize

PHP function Edit on GitHub ✎

(PHP 8 >= 8.5.0)

Deserialize the data parameter into a Url object

Description

Uri\WhatWg\Url::__unserialize(array $data): void

Deserializes a data parameter into a Uri\WhatWg\Url object.

Parameters

data

The serialized data as an array.

Return Values

Void

Errors/Exceptions

If the __unserialize method is called on an already existing URL, Error is thrown.

InvalidUriException

See Also

  • Uri\WhatWg\Url::__serialize
  • Uri\Rfc3986\Uri::__unserialize

Source: reference/uri/uri/whatwg/url/unserialize.xml · from the official PHP manual (php/doc-en)