PHP variables

, by Prashant Gunjal

We can declare variable as $variablename=value
Variable type depends on value assigned to it.

eg.

<html>
<head>
    <title>Variables</title>
</head>
<body>
<?php
    $name="ABC";
    $rollno=10;
   
    echo "<br>String --> Name : ".$name;
    echo "<br>Number --> rollno : ".$rollno;
?>
</body>
</html>

output :

0 comments: