标签:value amp 遍历 for 赋值 foreach each blog highlight
<?php $arr=array( array("num"=>100,"name"=>"Liuxy","score"=>"hello") ); foreach ($arr as $key =>&$value) { if($value[‘name‘]=="Liuxy"){ $value[‘name‘]=$value[‘score‘]; } } print_r($arr); ?>
标签:value amp 遍历 for 赋值 foreach each blog highlight
原文地址:http://www.cnblogs.com/25miao/p/7160393.html