Basic Syntax of PHP

PHP

This is the best , simple and easy example which will show you how to use the PHP Tags in the PHP File.

We have given a simple example which is used to show a simple message in the body tag with the echo message.

This example will print the message inside the body and the html H1 TAG.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Basic Syntax of PHP</title>
</head>
<body>
<h1>
<?php
echo "This is My Testing Message.";
?>
</h1>
</body>
</html>
-->