Monday, November 15, 2010

If....Else Conditional

Example :
$number = 3;

if ( $number == 3 ) {
echo "The if statement evaluated to true";
} else {
echo "The if statement evaluated to false";
}

Display :

The if statement evaluated to true

No comments:

Post a Comment