anantamu.com


PHP Variable




PHP Variable starts with $ dollar and end with ; semicolon.

To write No. of Programs by using PHP variables like find even number and odd number etc.


<?php  
$variable = "Welcome to PHP";
?>
                    

Single Line Comment:

// $a=0;

# $a=0;

Multiple Line Comments

/* $a=0;

$b=0;

$c=0;

*/


<?php  
$variable = "This is Variable Program.";
// $a=0; Single Line Comment
/* $a=0; mutlitple Line comments
$b=0;
$c=0;
*/

?>