← All docs

unserialize()

Creates a PHP value from a stored representation.

unserialize()

function unserialize(string $data, mixed $options = []): mixed

Creates a PHP value from a stored representation.

Parameters:

  • $data (string)
  • $options (mixed), default [], optional

Returns: mixed

Availability

Compiled (AOT)Magician (eval)
AvailableAvailable

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how unserialize is implemented in the compiler, see the internals page.