An array stores multiple values in one single variable. It is a special variable which can hold more than one value at a time, making it easier to manage related data.
In PHP, the array() function is used to create an array. You can also use the short array syntax [].
Arrays with a numeric index. The index always starts at 0.
Associative arrays are arrays that use named keys that you assign to them.
An array containing one or more arrays. PHP supports multidimensional arrays that are two, three, four, five, or more levels deep.
PHP has many built-in functions for arrays, such as count(), sort(), and array_merge().
foreach loop when you want to iterate through all the values of an array. It is the most efficient way to handle array data.