<?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); ?>
<?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); ?>