There is a slight different in creation of arrays in functional programming languages and PHP. PHP uses the function array() to create an array of objects. An array in PHP is an ordered Map. It is a map of key value pairsm where the key is a string and the value can be anything like a string or even another array. Using this very idea of key-value pair, you can create multi dimensional arrays.
Let’s explore the simplest form of arrays containing a sequence of numbers.
<?php $numbers = array (1,2,3); print $numbers."n"; print $numbers['0']."n"; print $numbers."n"; print $numbers['1']."n"; ?>
As you can see, the array function takes as input a comma separated input. As mentioned before, an array is an ordered map. Since in this case, we have not specified any keys, the default numbering or index mechanism is used. That is the first element is accessed either by the key  or [‘0’]
$numbers = array (1,2,3); print_r($numbers)
The output can be clearly visualized
Array (  => 1  => 2  => 3 )