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";
}
?>
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";
}
?>
php if endif
#1
if ($var1 == true) {
// codice da eseguire
} else if ($var2 == true) {
// codice da eseguire
} else {
// codice da eseguire
}
# 2
<?php if ($var1 == true): ?>
// codice da eseguire
<?php elseif ($var2 == true): ?>
// codice da eseguire
<?php else: ?>
// codice da eseguire
<?php endif; ?>
php else
<?php
if ($a > $b) {
echo "a is greater than b";
} else {
echo "a is NOT greater than b";
}
?>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us