The if else condtional statement execute block of code when condition is true and another code execute condiotion false.
Syntax
if (condition){
Code to be executed
}else{
Code to be executed
}
Example
$a=5;
$b=3;
if($a>$b){
echo "a is bigger than b";
}else{
echo "a is not greater than b";
}
Copyright ©2022 coderraj.com. All Rights Reserved.