PHP - Multidimensional Array

A multidimensional 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.in this example we create a multidimensional array,with automatically assigned ID keys.

Example


<?php

$products=array
			(
				"Lenovo"=>array("Leptop","Mobile Phones"),
				"Microsoft"=>array("Leptop","Mobile Phones"),
				"Dell"=>array("Leptop","Server")
			);
				
?>						
							
Share Share on Facebook Share on Twitter Share on Google+ Share on LinkedIn Pin on Pinterest Share on Stumbleupon Share on Tumblr Share on Reddit Share on Diggit