How to write a code for variables in PHP ?

Sunny.Sagar
Posted by Sunny.Sagar under Others category on | Points: 40 | Views : 727
A variable can have a short name like x and y
It cannot start with a number

<html>
<body>

<?php
$txt = "Hello world!";
$x = 5;
$y = 10.5;

echo $txt;
echo "<br>";
echo $x;
echo "<br>";
echo $y;
?>

</body>
</html>

Comments or Responses

Login to post response