You can place if statements within other if statements, which are known as nested if statements.
An if statement within another if statement:
$a = 13;
if ($a > 10) { echo "Above 10"; if ($a > 20) { echo " and also above 20"; } else { echo " but not above 20"; }}