Does PHP have something akin to Java's Hashtable class? I created my own implementation of a Hashtable object
with these functions:
function get()
function put()
function keys()
function values()
function sort()
function reset()
The behavior is almost identical to the Java hashtable object functions.
Did I reinvent the wheel?
I've read this:
http://www.zend.com/zend/cs/compaq.php
Arrays. PHP takes arrays and hashtables and merges the two. Any array can act as a standard array, a hashtable, or both. Using this data structure, you can get around Perl's and Java's hashtable limitation of not being able to retrieve the data in a defined order - pull it out either by numeric index or by key name.
Yet...I needed structure similiar to a Java's hashtable in my app. Any comments, suggestions? Would anyone like to see the code for the hashtable object?