基础
构建数组
$items = array();
//也可以不做初始化直接写
$items[0]= 'abc123' ;
$items[]='abc123' ;
$items['name']='andy';
//
$item = ['a', 'b', 'c'];数组式访问接口
ArrayAccess {
/* 方法 */
abstract public boolean offsetExists ( mixed $offset )
abstract public mixed offsetGet ( mixed $offset )
abstract public void offsetSet ( mixed $offset , mixed $value )
abstract public void offsetUnset ( mixed $offset )
}数组key和value的限制条件
数组的访问
数组元素的删除unset
PHP数组类型与其他类型的转换
数组的遍历
PHP数组“指针”相关函数
PHP中的预定义变量(数组)
Last updated