Conditions Examples

Example of an if/else condition: 3 plus 7 does equal 10!
Example of PHP case: i equals: 2

i equals: 2

An explanation of how conditions work:

In PHP, there are three primary terms for operating conditionals: if, else, and elseif. The PHP language allows for the use of logic in conditions. Conditions are used in conjunction with operators. TRUE, FALSE, NULL (means zero or does not exist), and ISSET (checks whether a variable has been set).