<font face="courier new, courier, mono" color="#0000ff" size="3"> <hr> <br><br><title>常用数组函数</title> <br><br><br><br> $colors = array("red", "green", "blue","yellow");<br> print("数组的个数:".count($colors)."<br>");//数组的个数<br> print("数组的当前值:".current($colors)."<br>");//当前的值<br> end($colors);<br> print("数组的最后一个的值:".current($colors)."<br>");<br> print("<hr>");<br> $slice = each($colors);//<br> print("each()函数的使用:"."<br>");<br> print($slice[0] . "====" . $slice[1] . "<br>\n");<br> print($slice['key'] . "====" . $slice['value'] . "<br>\n");<br>?><br><br> <hr> <img alt="常用数组函数" hspace="0" src="http://img.bitscn.com/upimg/php/20070123/11E55144015019641.jpg" align="baseline" border="0"></font>