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