Im facing some issue on counting total number of output.
<?php
$count = 1;
while ($count <= 10)
{
echo "$count ";
++$count;
}
?>
Result output
1 2 3 4 5 6 7 8 9 10
so what i want is to add all the result that is
1+2+3+4+5+6+7+8+9+10 = ? in my same code?
Try