Home Yellow Pages Movies Classifieds Jokes Jobs Free Hosting Videos




Multi dimensional Arrays

In a multi dimensional array, each element in the main array can also be an array. And each element in the sub-array can be an array, and so on.

Example

In this example we create a multidimensional array, with automatically assigned ID keys:

$families = array("Griffin"=>array("Peter","Louis","Maya"),"Mary"=>array
  ("Glenn"),"Brown"=>array("New Zealand","Lora","John")); 

The array above would look like this if written to the output:

Array(
[Griffin] => Array([0] => Peter  [1] => Louis  [2] => Maya  )
[Mary] => Array([0] => Glenn)
[Brown] => Array([0] => New Zealand [1] => Lora [2] => John)		)  

Back to Home
BizHat.com   Bookmark   Astrology   Chat Room   Classifieds   Computer   Downloads   Directory   Dating   Domain Tools   Education   eCards   Finance   Forums   Freelance Work   Free Hosting   Free Mail   Gallery   Games   Guest Book   Greeting Cards   Ham Radio   Health   Home Business   Hosting Tutorials   Hosting Directory   India   Jobs   Jokes   Kerala   Matrimonial   Music   Movies   News   News Letter   Recipes   Real Estate   Search   SMS   Tourist Guide   Top 100 Sites   Vote Us   Yellow Pages   Arthunkal Church   Site Map  

Google