PHP Compiler Testing
Find the Mean of All Digits

Create a function that returns the mean of all digits.

Examples

mean(42) 3

 

mean(12345) 3

 

mean(666) 6