Kmspico Download | Official KMS Activator Website [New Version 2024] Fast and Easy Converter YouTube to MP3 Online KMSAuto Net Activator Download 2024 Immediate Byte Pro Neoprofit AI Blacksprut without borders. Discover new shopping opportunities here where each link is an entrance to a world ruled by anonymity and freedom.

Write a PHP Program to Print Sum of Digits.

Sum of Digit Numbers Using PHP Program, How to Sum of Digit by PHP, Print Sum of Digits Number in PHP Program


$num = 20202021; 
$sum=0; $rem=0; 
for ($i =0; $i<=strlen($num);$i++) 
$sum = $sum + $rem; 
echo "Sum of digits 20202021 is $sum";