Create a PHP script to find the sum of all digits in a given number.
MediumProblem Statement
Create a PHP script to find the sum of all digits in a given number.
Sample Input
1234
Sample Output
10
Limits
Time: 2s · Memory: 256 MB
Create a PHP script to find the sum of all digits in a given number.
1234
10
Time: 2s · Memory: 256 MB