Arrays
摘要
An array is generally a set or group of values united by a common name. Arrays are usually used when there are many values, and creating a separate variable for each is impossible. If so, a common name is used for the entire set of values, and specific values (array elements) are identified using an index or indexes. In the “classic” version, the indexes are integers. In PHP, integers and strings can be used as indexes. In that case, the term key may be used instead of index. An array with string keys is usually called an associative array.