<html>
<head>
<title>An if Statement That Uses else and elseif</title>
</head>
<body>
<?php
$mood = "sad"; if ( $mood == "happy" ){
print "a good mood";
}elseif ( $mood == "sad" ){
print "Don't be down!";
}else{
print "Neither happy nor sad but $mood";
}
?>
</body>
</html>