34,333
edits
Changes
→Accessing Elements in a Multidimensional Array
The result will be the customer name "John Smith" appearing in the browser window.
== Accessing Elements in a Multidimensional PHP Array ==
To understand accessing elements of a multidimensional array it heslp to continuew to use the table analogy we started in the last section. Assuming a multidimensional array, we need to first specify the array row that we wish to access. Secondly we need to specify the column in that row. To access an element, therefore we specify the array name and then follow it with the desired row and column of the array, each enclosed in square brackets ([]).