Monday, December 31, 2012

Variable decleration in PHP

<?php
    $x = 1; //variable x holds 1
    $y = 7; //variable y holds 7
    $res = $x + $y; //variable res holds the addition of x and y
    echo $res; //printing the result
?>

No comments:

Post a Comment