php hashtables?

JMaster

Golden Member
Feb 9, 2000
1,240
0
0
Does php have any built in hash functions?
I currently have a multidimensional array of classes and I need to re-code all this into hashtables. I always thought that a hash table is a generic term used to describe a set of data where a key indexes the piece of data you want, and an array would fit this general description.
 

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
PHP arrays are actually stored as hash tables internally, I believe. You can store information using keys like this:

$myArray['date'] = "3/24/05";
$myArray['time'] = "11:40am";