unserialize(PHP 4, PHP 5) unserialize — Creates a PHP value from a stored representation Описаниеunserialize() takes a single serialized variable 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. Список изменений
Примеры
Пример #1 unserialize() example
<?php
Пример #2 unserialize_callback_func example
<?phpПримечанияВнимание
FALSE is returned both in the case of an error and if unserializing the serialized FALSE value. It is possible to catch this special case by comparing str with serialize(false) or by catching the issued E_NOTICE. |
|
|
| © 2009 Тест скорости интернета | Boont.Ru |