How to write a code for variables in PHP ?

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


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

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


Comments or Responses

Login to post response