Math Function II


#1

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



<?php
// Use rand() to print a random number to the screen
print rand();
?>



<?php
// 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);
?>



#2

https://discuss.codecademy.com/t/math-functions-ii/36382/4?u=leonhard.wettengmx.n


#3

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