<?php $array = [0.01, 0.99]; $sum = 0; foreach ($array as $value) { $sum += $value; } echo number_format($value, 2);
You have javascript disabled. You will not be able to edit any code.