php数组
php创建数组如下:
<?php $va=array("sd"=>"vsw","eq"=>"qwee"); echo $va['sd']; ?>
foreach遍历数组
foreach("数组名" as "key的名"=>"value名")
<?php $a=array("mr"=>"鸣人","zz"=>"佐助","xy"=>"小樱"); foreach($a as $key=value){ echo "$a"."$value"; } ?>