PYTHON Serializable::unserialize

is this article helpful?
|
Python replacement for PHP's Serializable::unserialize [ edit | history ]
from phpserialize import serialize, unserialize
str = serialize({'loginip': '127.0.0.1', 'uid': 96, 'loginfrom': 4, 'logintime': 1317200595})
print str
print unserialize(str)

PHP Serializable::unserialize

PHP original manual for Serializable::unserialize [ show | php.net ]

Serializable::unserialize

(PHP 5 >= 5.1.0)

Serializable::unserializeConstructs the object

Description

abstract public mixed Serializable::unserialize ( string $serialized )

Called during unserialization of the object.

Note: This method acts as the constructor of the object. The __construct() method will not be called after this method.

Parameters

serialized

The string representation of the object.

Return Values

Returns the original value unserialized.

See Also