PHP is an easy to understand server side scripting language. You can write your code in any text editor. Here is a simple piece of code that shows the basic syntax.
Each php script starts and ends with this code
<?php ... Your code goes here ... ?>
This code shows how the php script forms part of your HTML code
<!DOCTYPE html> <html> <body> <?php echo "This is my first PHP script!"; ?> </body> </html>