Array

Array is the collection of logically related data value of the same data type which are store in contiguous (serial) memory location and identify by single identity and array may have only one dimension and multidimensional.
array

Example in PHP
<?php
// indexing array
$array_var1=array('1','2','3','4');

// associative array
$array_var1=array(
'a'=>'1',
'x'=>'2',
'india'=>'Delhi',
'usa'=>'florida'
);
				
// Multidimensional array
$array_var3=array('a'=>'1',
'india'=>array('Delhi','MP','UP'),
'usa'=>array('florida','South Carolina')
);

?>

© 2014 Powered By