How to Display Text using a Variable with PHP?
First, Open your text editor (i.e. Notepad++)
As soon as Notepad++ opens, directly go to the menu File > Save As..
Type in the filename, for purpose of consistency, we will type in “thinktutorialcom-exercice1.php” and click on Save
Then type in the following PHP code:
Upload your file on your PHP server. Then open Google Chrome
and then type in the full path to the file you uploaded on your server and press enter and see the result
Exercice 1: Display text using a variable Download the PHP file