if-else statement in php <?php$num=21;if($num==20) { echo 'number is 20'; }else { echo 'number is not 20'; }?>output : number is not 20 Email This BlogThis! Share to X Share to Facebook