PHP is used to accomplish special tasks. Some PHP commands overlap JavaScript commands but that is for another more advanced discussion. Here are a very small list of applications allowed by the PHP capability.
In summary: PHP "echo" puts a PHP variable into the HTML environment so it can be displayed by the browser. If you are familiar with how to deal with <forms> you might consider this comment. "et's create a variable called "$var1". $var1 might come from a <form> via a POST or GET.
For example: $var1=$_POST['somename'];.
But if you are not familiar with Forms and POST/GET, then just understand that somehow, $var1 ='some information' is created.
You can now enter $var1 it into your <h2> tag (above) as follows: