PHP provides many ways to make web pages dynamic. Flow Control Functions allow scripts to evaluate conditions, and to alter their behavious accordingly. The most basic of these is the if statement. "The if statement evaluates an expression found between parentheses - if this statement results in a true value, the statement is executed. Otherwise, the statement is skipped entirely."
$mood = "happy";
if ($mood == "happy") {
echo "Hooray, I'm in a good mood!";
}