Simple implementation of a hashtable in php