A journey of a thousand lines begins with a “Hello world!”. - Czar
This exercise aims to introduce you to PHP via the customary "Hello world!".
Unlike most programming languages, PHP is a scripting language originally design as a templating language for C. This is why it can easily embedded HTML codes. On the other hand, this has resulted in PHP having quite a unique syntax as compared to most other languages. For example, a PHP script must always start with <?php
. Anything outside the opening and closing PHP tags then become treated as output (usually HTML).
Here is how PHP mixed with HTML looks like: