Answers for "php if ? :"

PHP
7

php if else

<?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
1

if statement php

if (condition) {
  expression
}
Posted by: Guest on October-07-2020
1

php ifelse

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 September-27-2021

Browse Popular Code Answers by Language