PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $array = [ [["value" => 1100], ["value" => 1000], ["value" => 3000]], [["value" => 1200], ["value" => 2000], ["value" => 2000]], [["value" => 1300], ["value" => 4000], ["value" => 1000]], ]; foreach($array as $key => $point){ $arr[] = [ 'value' => array_sum(array_column( array_column($array,$key),'value')) ]; } print_r($arr);
Show:  
Copy Clear