Start PHP Code RESULT
awww...don't be sad!
End PHP Code RESULT

 

The PHP Code START
<?php
$mood = "sad";
if ($mood == "happy") {
    print "Hooray, I am in a good mood";
} elseif ($mood == "sad") {
    print "awww...don't be $mood!";
} else {
    print "Neither happy nor $mood";
}
?>
The PHP Code END

Back to Bill's PHP