← 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

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

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