A comprehensive overview of the control structures available in PHP.
Often times, people find it difficult to make a decision--we're often asking ourselves questions like, "What pair of pants should I wear to work?", "Should I really eat that extra donut?" and "Should I tell my fiancee I wear a toupee?"
But computers have a much simpler life. Programs use logical comparisons to help make a decision and depending on the value of the statement (whether it evaluates to true or false) the program can process different sections of code.
A logical comparison compares the value of one operation or statement with that of another to see if the overall statement resolves to either "true" or "false."
For example, if $x has been set to 6, and $y has been set to 7, then the statement "the value of $x is less than the value of $y" would be true. Statements saying $x's value is greater than or equal to the value of $y would be false.