<.?
/* 建立一个数组*/
$fruitArray = array("apple", "orange", "banana", "kiwi", "pear").
/*从一个数组的开始删除一个元素*/
$shifted = array_shift($fruitArray).
/* 显示删除后数组的内容和你删除的元素*/
while (list($key,$value) = each($fruitArray)) {
echo "$key : $value<.br>.".
}
echo "<.br>.and finally, in $shifted: $shifted".
?>. |