array(4) {
["apple"] => string(11) "apple value"
["orange"] => string(12) "orange value"
["grape"] => string(11) "brape value"
["plum"] => string(10) "plum value"
}
------------------普通数组遍历-----------------
apple:apple value
orange:orange value
grape:brape value
plum:plum value------------------使用ArrayIterator迭代器遍历数组(foreach)-----------------
apple:apple value
orange:orange value
grape:brape value
plum:plum value------------------(while)-----------------
apple:apple value
orange:orange value
grape:brape value
plum:plum value------------------跳过某些元素进行打印(while)-----------------
orange:orange value
grape:brape value
plum:plum value------------------用迭代器的key进行排序(ksort)-----------------
apple:apple value
grape:brape value
orange:orange value
plum:plum value------------------用迭代器的value进行排序(asort)-----------------
apple:apple value
grape:brape value
orange:orange value
plum:plum value