Add/Modify Data in Existing Array

## Add/Modify Data in Existing Array $msg= array( [0]=array( ‘id’=2 ‘name’=som ) [1]=array( ‘id’=3 ‘name’=mon ) ) if($msg){   foreach ($msg as &$val) {     $val[‘name’]=’mod’; $val[‘new’] = ‘new added’;   } } print_r($msg);