Introduction to PHP 9/13


Semicolons
You've probably noticed that our lines of PHP code end in semicolons (;). PHP requires semicolons at the end of each statement, which is the shortest unit of standalone code. (For example, echo "Hello!"; or 2 + 2;)
You can think of a statement is a complete PHP thought. 19 + or echo aren't complete thoughts, so you wouldn't put semicolons at the end of them!
<?php echo "Use your semicolons!"; ?>
Instructions
We've accidentally forgotten our semicolon on line 8. Add it in!
Introduction to PHP 9/13
<!DOCTYPE html>
<html>
    <head>
        <title>Oh No!</title>
    </head>
    <body>
        <p><?php
            echo "Oh, the humanity!";
          ?></p>
    </body>
</html>
CSS
p {
    font-family: Garamond, serif;
}

Comments

Popular posts from this blog

MEGA 暫存檔案刪除

IOS GCD多執行緒

利用CMD指令強制刪除