serialize_pure

Pure variant of serialize

function serialize_pure(
  mixed $value,
): string;

Serializing objects with impure implementations of the __sleep method will result in coeffect violations.

Parameters

  • mixed $value

Returns

  • string