PHP file can be created with any text editor.
To start learn PHP, we recommend that you use Notepad, Notepad 2, Notepad++, etc.
Put Following Code in Text Editor.
<?php echo "Hello PHP!"; ?>
Save the file as
Make sure that file extension is
php otherwise it will not execute.