PHP Syntax Basic Structure
Make sure you will save the php file as .php extention other wise php code will not work.
PHP is used in backend web development where you can retrieve and display data from the database and also you can create your own functionality to make a website dynamically.
Before we start with basics let you know that PHP code can be used in any HTML tag element.
<?php $a="Hello Word"; //String echo $a; ?>