UNKNOWN
UNKNOWN
The Serialize:: class provides various methods of encapsulating data.
Copyright 2001-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
serialize(mixed $data, mixed $mode = array(self::BASIC), mixed $params = null) : string
Serialize a value.
See the list of constants at the top of the file for the serializing techniques that can be used.
mixed | $data | The data to be serialized. |
mixed | $mode | The mode of serialization. Can be either a single mode or array of modes. If array, will be serialized in the order provided. |
mixed | $params | Any additional parameters the serialization method requires. |
The serialized data.
unserialize(mixed $data, mixed $mode = self::BASIC, mixed $params = null) : string
Unserialize a value.
See the list of constants at the top of the file for the serializing techniques that can be used.
mixed | $data | The data to be unserialized. |
mixed | $mode | The mode of unserialization. Can be either a single mode or array of modes. If array, will be unserialized in the order provided. |
mixed | $params | Any additional parameters the unserialization method requires. |
The unserialized data.
_serialize(mixed $data, mixed $mode, mixed $params = null) : string
Serialize data.
mixed | $data | The data to be serialized. |
mixed | $mode | The mode of serialization. Can be either a single mode or array of modes. If array, will be serialized in the order provided. |
mixed | $params | Any additional parameters the serialization method requires. |
A serialized string.
_unserialize(mixed $data, mixed $mode, mixed $params = null) : mixed
Unserialize data.
mixed | $data | The data to be unserialized. |
mixed | $mode | The mode of unserialization. Can be either a single mode or array of modes. If array, will be unserialized in the order provided. |
mixed | $params | Any additional parameters the unserialization method requires. |
Unserialized data.