Answers for "examples for if else php"

26

php elseif

<?php
if ($a > $b) {
    echo "a is bigger than b";
} elseif ($a == $b) {
    echo "a is equal to b";
} else {
    echo "a is smaller than b";
}
?>
Posted by: Guest on April-23-2020
34

if else php

if (condition) {
	// statement
} else if(condition){
	// statement
}else{
  // statement
}
Posted by: Guest on January-18-2022

Code answers related to "Javascript"

Browse Popular Code Answers by Language