PHP DevCenter oreilly.comSafari Books Online.Conferences.   PHP
Foundations  Arrays in PHP: Part 2   Today we'll continue our
discussion of arrays in PHP including the use of associative and
multidimensional arrays.  In my last article, we introduced a
new array data type in PHP and covered its fundamentals. Today
we'll dive deeper into arrays and introduce a type of array
called an associative array and a more complex type of array --
the multidimensional array.  Associative arrays  When we last
discussed arrays, we described how arrays could be used and only
deal with indexes based on integer numbers (1,2,3,etc). This
week we'll introduce another type of array -- the associative
arrays. Associative arrays are identical to any other type of
array with one major difference -- their index values. In
Associative arrays index values are not limited to simple
integer values but can also be strings. For example, in an
associative array the index "foo" can be used to store the value
"bar". Thankfully, declaring and