Create a simple php page

A php file  start with '<?php' and ends with '?> Structure of the php is shown below.

<?php 
//body of php file
?>

An echo is used in the php to display a text or a value inside the text as the output to the user.



<html>
<head>
</head>
<body>
<?php
echo "Hello World";
?>
</body>
</html>


Output


Hello World

Here the echo is used to print the string hello world.


Prev
Next

Comments

Popular posts from this blog

Node.js Cheat Sheet

Codeigniter ! Simple But Powerful

Enhancing Supply Chain Security and Cloud-Native Development with Chainguard