It is very easy to create a simple PHP example. To do so, create a file and write HTML tags + PHP code and save this file with .php extension.
All PHP code goes between php tag. A syntax of PHP tag is given below:
Let's see a simple PHP example where we are writing some text using PHP echo command.File: first.php
Hello First PHP