错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Arrays

  • Alex Vasilev

摘要

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.