How to Use String Variable in PHP

PHP

This is the example which will show you how to assign a string content to the variable in PHP.

Please check the below example it is showing that the Variable “$Variable” is used to store the text statement and then it is used to show on the front page with the help of echo.

<!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>String Variable Example in PHP</title>
</head>
<body>
<h1>
<?php
$Variable = "Hello This is My Testing Message.";
echo $Variable;
//You can add any name in place of $Variable
?>
</h1>
</body>
</html>
-->