<?php $d = 451; $sum = 0; for($i=0; $i<strlen($d); $i++) { $sum += (int)substr($d, $i, 1); } print $sum;
You have javascript disabled. You will not be able to edit any code.