array type in php 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];