array.php $value){echo '第'.$key.'值是:'.$value;}//关联数组$capitals=array('Alabama'='Montgomery','Alaska'='Juneau','Arizona'='Phoneix');echo '';var_dump($capitals);echo '';$capitals['Arkansas']='Little Rock';//追加额外的数组元
$value){ echo '第'.$key.'值是:'.$value; } //关联数组 $capitals=array( 'Alabama'=>'Montgomery', 'Alaska'=>'Juneau', 'Arizona'=>'Phoneix' ); echo ''; var_dump($capitals); echo ''; $capitals['Arkansas']='Little Rock';//追加额外的数组元素 var_dump($capitals); echo ''; ?>