PHP Arrays are a collection of variables, which stores multiple values of same or different datatype at a time.
In PHP, the array () function is used to create an array.
There are three types of arrays:
Indexed arrays – These arrays have a numeric index.
Associative arrays – These arrays have named keys.
Multidimensional arrays – These arrays have one or more arrays.