playing with some data structures in php