Arrays play a central role in PHP programming. Many functions return arrays and they are often used to handle configuration. The basic array is a list of key and value pairs where the key can be an integer or a string and the value can be any variable type, including arrays.
Recipe 4-1. Creating Arrays
Arrays are treated as a fundamental data type in PHP. There are no functions to call or objects that must be instantiated to create variables with array values.
PHP uses the language construct array() to create arrays. If you assign the value array() to a variable you create ...