The PHP if
statement lets a script test to see if a certain condition is true, and run a chunk of code if it is. This allows your code to make decisions about what to do next, thereby adding a lot of power to your scripts.
[Read more…] about Making Decisions with the PHP if Statement