Current Location: Home> Function Categories> unserialize

unserialize

Create a PHP value from a stored representation
Name:unserialize
Category:Variable processing
Programming Language:php
One-line Description:Convert serialized data back to actual data.

Definition and usage

The unserialize() function converts the serialized data back to the actual data.

Example

Convert serialized data back to actual data:

 <?php
$data = serialize ( array ( "Red" , "Green" , "Blue" ) ) ;
echo $data . "<br>" ;

$test = unserialize ( $data ) ;
var_dump ( $test ) ;
?>

Try it yourself

Similar Functions
Popular Articles