Sum of Digits in PHP

by:

Basic Programs

The sum of the digits of variety is named its digit sum. For instance , the digit sum of 15 is 6 because 1 + 5 = 6.

Sum of Digits in PHP