摘要: 1、foreach遍历 $arr[] = array('first'=>green,'second'=>'yellow','third'=>'blue'); foreach($arr as $key=>$val){ echo $key.'-'.$val; echo ' '; } 输出结果: first-green second-yellow third-bl... 阅读全文