Developer's Manual  Function Reference  Miscellaneous functions  gzUnserialize

gzUnserialize

Creates a PHP value from a serialized and compressed string.


mixed gzUnserialize
(string gzserialized_value)

The function takes single compressed and serialized variable (see gzSerialize()) and converts it back into a PHP value.

Example

<?
$var
= Array('name' => 'file.doc', '1' => 'no');
$svar = gzSerialize($var, FALSE);
echo
$svar . '<br />';
$var = gzUnserialize($svar);
echo
'<pre>';
print_r($var);
echo
'<pre>';

?>
Please login to add comments.