The advantage that PHP offers over other programming languages that run on the server (such as script CGI Perl) is that it allows us to insert the PHP sentences in the HTML pages- a complicated concept if you have never studied the process of how a PHP or ASP page works.
Here is a simple example for a better understanding. The HTML code is in blue and the PHP code in red. We will use this criterion throughout the entire manual.
The PHP code run comprises two parts: the first one prints "PHP Section", and the second part is a loop that runs 10 times from 0 to 9; every time it is run, a row is written, the variable $i is the row number being written.
It is not important if the sample program is not completely understood, it is being used only to illustrate how the HTML and PHP codes are interspersed.