<?php $arr = array(array(1, 3, 5)); $sum = array_sum($arr[0]); echo $sum;?>
9
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!