"Hello World" Explained
This lesson explains in detail the Hello World code written in the last lesson. It explains the basic syntax used in almost every PHP code.
Here’s the code from the previous lesson:
Press + to interact
PHP
<?phpecho "Hello, World!\n";?>
Let’s take a look at this in detail.
We’ll start from the very first line and go step by step!
PHP Opening Tag #
A PHP script can be written anywhere in the document, and it signifies the start of the PHP code.