摘要: 1. array_unshift()数组头插入新元素$fruits = array('apple','pear','banana','orange');array_unshift($fruits, 'cherry');pr($fruits);function pr($str){ echo ""; print_r($str); echo "";}输出:Array( [0] => cherry [1] => apple [2] => pear [3] => 阅读全文
posted @ 2013-11-13 21:02 飞凡123 阅读(6840) 评论(0) 推荐(1) 编辑