IF-ELSE method1:

if ($foo);

echo “yepn”;

elseif ($bar);

echo “almostn”;

else;

echo “nopen”;

endif;

IF-ELSE method2:

if ($foo){

echo “yepn”;

}elseif ($bar){

echo “almostn”;

}else{

echo “nopen”;

}

Share on Facebook