PHP multidimensional array is also known as array of arrays. It allows you to store tabular data in an array. PHP multidimensional array can be represented in the form of matrix which is represented by row * column.
PHP multidimensional array is also known as array of arrays. It allows you to store tabular data in an array. PHP multidimensional array can be represented in the form of matrix which is represented by row * column.
<?php
$two_dimensional_array = array (
"fruits" => array("index" => "orange", "index2" => "banana", "index3" => "apple"),
"numbers" => array(1, 2, 3, 4, 5, 6),
);
?>
var_dump()
statement gives the following output: