PHP Exercise and solutions: An Array Brief – codzhub

An array is a continuous memory allocation in memory . It will accept the key and value in pair . An Array can store the value and key in simple variables .

An array is a special type which can hold the multiple value .

For Example :

<?php

$arr = array(1,2,3,4,5,6,7,8,9,10);

echo "<pre>";

print_r($arr);

exit;

?>

There are many types of an array those are listed belows :

  • Numeric Array
  • Associative Array
  • Multi Dimentional Array

Click me to see the solution