Conditional Statements in PHP – PHP Virgin
Before we get started with conditions, let’s take a quick look at comparison operators. You should remember them from math class. These allow you to make a comparison between two values. For instance, 1 is less than 2, $a equals $b, or $a is not equal to ‘dude bro’.