I am about to give up. I knwo it is dman simple but... Here is what I have:
$stuff = Array ( [0] => 1 ) Array ( [0] => 0.5 ) Array ( [0] => 0.5 )
I need a sum the values (so 1 + 0.5 + 0.5) to a string? what on Earth should I do? is there non-recursive way of doing so (like array_sum()) ? Thank you so much in advance.
$sum = $a[0] + $b[0] + $c[0];$sum = array_sum(array_column($stuff, 0));