If-Else in PHP
if-else statement is used when we want to make choice to be made between two possible alternatives.
Example of If-Else -
//check whether secondnumber is greater than firstnumber or not
echo "Second number is greater"; //if secondnumber is greater then it print this statement
echo "First number is greater";
For Loop in PHP