PHP is an embedded server programming language. Most of its syntax is borrowed from C, Java and Perl. And also added a pair of unique features only for PHP functions. The main goal of this language is the creation of dynamically generated PHP HTML pages.
Php in html
When creating complex web pages, you will come across the need to combine PHP and HTML to implement specific tasks. At first glance, this may seem difficult, as PHP and HTML are two independent disciplines, but it is not. PHP is designed to interact with HTML, and its code can be included in the page markup.
In HTML pages, the PHP code is included with the help of special tags. When the user opens the page, the server processes the PHP code, and then sends the result of the processing (not PHP code) In the browser.
HTML and PHP are quite simple to combine. Any part of the php script outside the tags It is ignored by the PHP compiler and is transmitted directly to the browser. If you look at the example below, you can see that the full PHP script may look like this:
Hello today.