How to Use Echo in PHP

PHP
This Example will help you to show the Text message with the help of Variable or simple Text with the help of ECHO.
We have shown a simple example which will show you how to assign numbers into variable and then echo that variable.
For Testing complete output you can copy and paste in your file and then check the output.
<!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>How to Use Echo in PHP</title>
</head>
<body>
<?php

//Print Message Directly without any Variable
echo "This is My Testing Message.";

//This is used to make a space of one line
echo "<br>";

//Print Message with the HTML Tags
echo "<b>Hello</b>,<br><p>This is the Test Message with Html Tags.</p>";

//This is used to make a space of one line
echo "<br>";

//Print Message after Passing values to the Variable.
$var1 = "Test Message";
echo $var1;

//This is used to make a space of one line
echo "<br>";

//Print Integers&nbsp; from the Variables
$num = 10;
echo $num;

//You can copy complete code and test it.
?>
</body>
</html>
-->