|
unserializeCreates a PHP value from a stored representation Description
mixed unserialize
( string
$str
[, array $options
] )unserialize takes a single serialized variable and converts it back into a PHP value. Warning
Do not pass untrusted user input to unserialize regardless
of the If you need to unserialize externally stored serialized data, consider to use hash_hmac for data validation. Make sure data is not modified by anyone, but you. Parameters
Return ValuesThe converted value is returned, and can be a boolean, integer, float, string, array or object.
In case the passed string is not unserializeable, Changelog
Examples
Example #1 unserialize example
<?php
Example #2 unserialize_callback_func example
<?php NotesWarning
See Also
|