PHP Multidimensional Arrays: How Many Dimensions Deep Have you Been? What are PHP multidimensional arrays? Just think of an array within an array. In other words, it’s an array that stores arrays as elements. Those elements that are arrays themselves can have arrays as elements. The easiest way to explain this is with some examples. In the previous article on associative arrays, we looked at the $person array.     The $person array contains a few key/value pairs such as the person’s name, age, email, occupation, and book_title. The book_title represents the book the author has written. I would assume

I’d Like you to Meet my associate. What are PHP Associative Arrays? If you’re familiar with other programming languages, an associative array is pretty much a dictionary. Instead of accessing the array by using an index value, you’ll access it by using a key. That key points to a value. Keys in PHP can be integers or strings. If you attempt to store a floating point number as a key, it will be cast to an integer. Boolean value true will be case to 1 and false will be cast to 0. We can access a regular array with the index value of the