array学习.
<?php
/**
* QQ:5871029 Email:hel8@vip.qq.com
* @copyright Horleun (c)2010
* @author Horleun <Horleun@foxmail.com>
*/
$A311=array(“yrd”,”wsq”,”Horleun”,”ct”,”wxj”,”hjx”);
print $A311[2] . “<br />”;
print_r ($A311);foreach($A311 as $i=>$value){
unset($A311[$i]);
}
echo”<br />”;
print_r ($A311);
echo”<br/>”;
$A311[] = “xx”; //索引从5开始~
print_r ($A311);
echo”<br />”;/*重新索引*/
$A311=array_values($A311);
$A311[]= “YY”;
print_r ($A311);echo”<br />”;
$a=array(“1″=>array(“yrd”,”wsq”,”Hor”),
“2”=>array(“ct”,”wxj”,”hjx”));
echo $a[1][2];
?>