how serialization works php code example
Example: php serialize()
php array to be storable value in $_SESSION:
serialize($array)
serialized array element to be output on page:
unserialize($serializedArray)
php array to be storable value in $_SESSION:
serialize($array)
serialized array element to be output on page:
unserialize($serializedArray)