Devesh Kumar No comments

PHP Sample hello world page

 



PHP is server side scripting language, which is use for create the website and rest api, also its cross platform scripting language which is deploy on both Windows and Linux server.


PHP Code Execute on server side
We can write the html and java script inside the PHP code and and it will return a html content to browser.
Default Extension for php code "*.php"
All Statement ends with semicolon ;


Sample PHP Code


<?php
  echo "Hello World!";
?>


PHP code with HTML


<!DOCTYPE html>
<html>
<body>

<h1>Sample Php page</h1>

<?php
echo "Hello World!";
?>

</body>
</html>

Comments (0)

Post a Comment

Cancel