Math Function II


Need help please...
Getting this error message: "Oops, try again. The random output you printed from your name should be a letter."

// Use rand() to print a random number to the screen
print rand();

// Use your knowledge of strlen(), substr(), and rand() to
// print a random character from your name to the screen.
$name = "Raymond";
print strlen($name);
print rand(1,10);
print substr($name,0,3);



This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.