First of all, You need to create PHP file in “xampp/htdocs” directory with dot PHP extension and write the simple syntax here.
//php code here
If you want run simple program in PHP I giving you simple example below you can write same in your file run on your browser. Be sure before run your program on browser your xampp software should be open and Apache and MySQL service should be started.
echo “hello Friends”;