Monday, December 31, 2012

Giving condition in PHP

<?php
    $x = 5;
    $y = 9;
    if($x > $y) echo 'x is greater than y';
    else echo 'x is less than y';
?>

No comments:

Post a Comment