数组有";
echo count($arr);
echo "个值
分别是"; print_r ($arr); if(is_array($arr)) { echo "
是数组"; } else { echo "
不是数组"; } $b=array("a"=>"one","b"=>"two"); echo "
"; echo $b["a"]; echo "
"; echo $b["b"]; echo "

=======修改数组=======
"; $b["a"]="ONE"; echo "将one修改成了",$b["a"],"
"; $c="1990年-1月-2日"; echo "数组C的内容:"; print_r($c); $d=explode("-",$c); echo "
D数组的内容:"; print_r($d); echo "

=======遍历数组=======
"; $e=array(123,456,789,101); foreach($e as $key=>$value) { echo "关键字:$key 值:$value
"; } ?>