serailize how and why to use in php code example
Example 1: php serialize()
php array to be storable value in $_SESSION:
serialize($array)
serialized array element to be output on page:
unserialize($serializedArray)
Example 2: serializer in php
serializer in php
PHP: serialize()