The task asks you to print a random character from your name to the screen, for which my code below correctly works, however it does not pass.
The error I receive is: 'Oops, try again. Your printed output from rand() should be an integer.'
Please see code below.
// Use your knowledge of strlen(), substr(), and rand() to
// print a random character from your name to the screen.
$name = "Dylan";
print substr($name, round(rand(0, strlen($name)-1)),1);
The second argument of my substr() function IS an integer. Am I missing something?