Writing PHP scripts can be done easily in the program editor such as Notepad, Notepad ++, Sublimetext, etc. There are several alternative options editor program that you can use, among others
PHPEdit ,Crimson , PHP Designer 2006 , and others.
Here's an example using Notepad:
1. Open Notepad and write PHP scripts therein.
script like this:
“Hello World PHP”;
2. Click File – Save As – Save the name tes.php in sub-directory folder htdocs (folder inside xampp) .
3. Open a browser and type localhost / tes.php
If you have any questions please comment 🙂