Check Teer Result

How to echo hello world in php

How to echo "Hello World" in Php :-

What is PHP ?
PHP is a server side and secure language which is used to make dynamic and secure webpages



<?php
echo "<center><h1>Hello world</h1></center>"; 
?>

How can we write PHP Code?
Generally PHP code does not run in a browser. So we have to install wamp or xamp server in our system.

Some of the website made on PHP are -
1. Facebook.com (Social Networking Website)
2. Examdoor.in (Jobs Site)

How to install Wamp server?
http://www.wampserver.com/en/

We will use Notepad ++ and Google Chrome Browser



<!DOCTYPE html>
<html>
<body>
<?php
echo "My first PHP script!";
?>
</body>
</html>

Learn How to Set Wamp Server in Windows PC -






EmoticonEmoticon