If Condition in PHP
What is If statement?
If structure is used for conditional execution of code segment
In the above syntax, based on the "expr" the statements are executed
if ($c > $d)
echo "c is bigger than d";
In the above example, only if the condition "$c>$d" is true, the message "c is bigger than d" is displayed