unserialize
Create a PHP value from a stored representation
The unserialize()
function converts the serialized data back to the actual data.
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