PHP. Руководство по PHP. 2005
unserialize
unserialize
Description
mixed unserialize (string str)unserialize() takes a single serialized variable (see serialize()) and converts it back into a PHP value. The converted value is returned, and can be a boolean, integer, float, string, array or object. In case the passed string is not unserializeable, FALSE is returned and E_NOTICE is issued.
Внимание |
- FALSE is returned both in the case of an error and if unserializing the serialized FALSE value. This special case can be catched by comparing str with serialize(false) or by catching the issued E_NOTICE. |