Error with course


#1


https://www.codecademy.com/courses/web-beginner-en-7I7Xm/0/5?curriculum_id=5124ef4c78d510dd89003eb8#


I'm not actually stuck on this exercise. I'm writing this because there is a way to completely skip the second and third parts of Math Functions II. By using the code posted below and fooling the course, you don't have to use rand(), strlen(), or even substr(). After submitting this code, you are allowed to go to Array Functions I.


<html>
    <p>
    <?php
    // Use rand() to print a random number to the screen
    print rand();
    ?>
    </p>
    <p>
    <?php
    // Use your knowledge of strlen(), substr(), and rand() to
    // print a random character from your name to the screen.
    $name = "lmth";
    print "l";
    ?>
    </p>
</html>


#2

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