How do I find the sum of all the digits in a number in PHP?
One way of getting sum of digit however this is a slowest route.
$n=123; while(($n=$n-9)>9); echo "n: $n";