How come this code does not pass the check?
It selects and prints only 1 character from my name variable.
Error Oops, try again. The random output you printed from your name should be just one character.
<html> <p> <?php // Use rand() to print a random number to the screen print rand (0,30); ?> <?php // Use your knowledge of strlen(), substr(), and rand() to // print a random character from your name to the screen. $name = 'Username'; echo substr($name, rand (0, strlen ($name)-1), 1); ?> </p> </html>