Introduction to PHP 3/13

Introduction to PHP 3/13
<!DOCTYPE html>
<html>
    <head>
    </head>
    <body>
        <p>
          <?php
        echo "FeEvo";
          ?>
        </p>   
    </body>
</html>
//CSS
p {
    font-family: Garamond, serif;
}


PHP and HTML
PHP code can be written right into your HTML, like this:
<body>
  <p>

    <?php
      echo "I'm learning PHP!";
    ?>

  </p>
</body>
Your PHP code goes inside the <?php and ?>delimiters. Here we use the function echo to output I'm learning PHP!. We also end the line with a semicolon.
Instructions
Try it out. On line 8, use echo to output your name. Make sure to end your line with a semicolon.

Comments

Popular posts from this blog

MEGA 暫存檔案刪除

IOS GCD多執行緒

利用CMD指令強制刪除