It is a server side programming language which can be used for making web pages and online apps and also used for making software(requires PHP GTK).
<h2>Below is the php code output.</h2>
<?php echo “Hello World!” ;?>
Save the file with name “test.php” however you can write any desired name with .php extension.
Now place this file into the htdocs folder of Xampp or www folder if you have wamp installed.
After doing this, make sure that your xampp or wamp is running by clicking the xampp icon or wamp icon like you start any other program.
Open your desired browser and access this url “localhost/test.php” and hit enter.
You will see output like this below:
1. Write your desired text within echo using php tags.
2. Save the file with .php extension in htdocs folder of xampp.
3. Browse the file in browser.
4. That’s it.
5. Hurrah!Now you are a php developer.
Hope, this will help you.
For any problem or feedback comment below.