Understanding IF’s is important in PHP for many reasons. They’re mainly used when submitting a HTML form, you can see them being uses in nearly every contact script. When you accidentally submit the wrong text you’ll get an error back, this is using PHP IF’s.