PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
Copy Clear
Copy Format Clear
<?php $arr = [ ["quantity"=>0.036], ["quantity"=>0.037], ["quantity"=>0.040], ["quantity"=>0.048], ]; $a = array_sum(array_column($arr, 'quantity')) * 1000; var_dump($a); $a = floor($a); var_dump( $a);
Show:  
Copy Clear