php array type code example
Example 1: What types of Array in php
In PHP, there are three types of arrays:
Indexed arrays - Arrays with a numeric index.
Associative arrays - Arrays with named keys.
Multidimensional arrays - Arrays containing one or more arrays.
Example 2: php arrays
$nums = [1, 2, 3, 4, 5];
Example 3: php array
<?php
$array = array("foo", "bar", "hello", "world");
var_dump($array);
?>