php serialize arrayp code example
Example 1: php serialize array
$array["a"] = "Foo";
$array["b"] = "Bar";
$array["c"] = "Baz";
$array["d"] = "Wom";
$str = serialize($array);
Example 2: php serialize()
php array to be storable value in $_SESSION:
serialize($array)
serialized array element to be output on page:
unserialize($serializedArray)