Thursday, April 24, 2014

Introduction to PHP - 7/13 - codeacademy.com

Instructions: On line 8 in between the <?php and ?>, use echo to calculate 17 * 123. Make sure to end your PHP code with a semicolon.


<!DOCTYPE html>
<html>
<head>
</head>
<body>
        <p>
          <?php
                echo 17*123;
          ?>
        </p>
</body>
</html>

Introduction to PHP - 7/13 - codeacademy.com

Instructions: On line 8 in between the <?php and ?>, use echo to calculate 17 * 123. Make sure to end your PHP code with a semicolon.


<!DOCTYPE html>
<html>
<head>
</head>
<body>
        <p>
          <?php
                echo 17*123;
          ?>
        </p>
</body>
</html>

Introduction to PHP - 6/13 - codeacademy.com

Instructions: Go ahead and echo a string of your choice on line 8. Try out the concatenation operator if you're feeling bold!


<!DOCTYPE html>
<html>
<head>
</head>
<body>
        <p>
          <?php
          echo "Just  " . "another" . " string";
          ?>
        </p>
</body>
</html>

Introduction to PHP - 6/13 - codeacademy.com

Instructions: Go ahead and echo a string of your choice on line 8. Try out the concatenation operator if you're feeling bold!


<!DOCTYPE html>
<html>
<head>
</head>
<body>
        <p>
          <?php
          echo "Just  " . "another" . " string";
          ?>
        </p>
</body>
</html>

Introduction to PHP - 5/13 - codeacademy.com

Topic: PHP Syntax


Instuction: On line 8 in between the <?php and ?>, use echo to output "I'm learning PHP". Make sure to end your PHP code with a semicolon.


<!DOCTYPE html>
<html>
    <head>
</head>
<body>
        <h1>
          <?php
              echo "I'm learning PHP";
          ?>
        </h1>
</body>
</html>

Introduction to PHP - 5/13 - codeacademy.com

Topic: PHP Syntax


Instuction: On line 8 in between the <?php and ?>, use echo to output "I'm learning PHP". Make sure to end your PHP code with a semicolon.


<!DOCTYPE html>
<html>
    <head>
</head>
<body>
        <h1>
          <?php
              echo "I'm learning PHP";
          ?>
        </h1>
</body>
</html>

Introduction to PHP - 3/13 - codeacademy.com

Instructions:

Try it out. On line 8, use echo to output your name. Make sure to end your line with a semicolon.

    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
            <p>
              <?php
            echo "I'm [insert your name here]!";
              ?>
            </p>
    </body>
    </html>