unserialize_pure

Pure variant of unserialize

function unserialize_pure(
  string $str,
  darray $options = dict [
],
): mixed;

Unserializing objects with impure implementations of the __wakeup method will result in coeffect violations.

Parameters

  • string $str
  • darray $options = dict [ ]

Returns

  • mixed