Can anyone explain the working of Multidimensional array i PHP.I read fro w3schools but it is not clear to me.Please explain it i detail.
did you try to visualize it? that's what make you go crazy.
another way to look at it, see you computer's folder.
inside your drive, you see some folders.
inside each folder, you can see some child folders.
inside each child folder, got some other folders.
this goes on and on.
array is exactly like that. each array can have another array in it. each child array can have another array. on and on.
each array don't have to have exactly the same number of child array, and some array can even do not have any child array, just a value. which if we go back to the computer's folder analogy, you may call it file.
just stop visualizing object that have more than 3 dimensions in your head. you will go crazy.
$employee_array = "Bob";
$employee_array = "Sally";
$employee_array = "Charlie";
$employee_array = "Clare";
Actually array in php is not really what it means in C or C++. It works much like a generalized list.
You can see more php examples.
Terminology ho! Arrays in PHP are known, in various other languages, as loads of things: hashes, dictionaries, maps, lists of pairs, etc. Whereas in most other languages, an array is something completely different to the PHP notion of array. Oh well.