Answers for "syntax error, unexpected 'elseif' (T_ELSEIF)"

PHP
0

syntax error, unexpected 'elseif' (T_ELSEIF)

if ($items > 5) {
    echo "You get a 10% discount!";
} else if ($items == 1) {
    echo "Sorry, no discount!";
} else {
    echo "You get a 5% discount!";
}
Posted by: Guest on October-07-2021

Code answers related to "syntax error, unexpected 'elseif' (T_ELSEIF)"

Browse Popular Code Answers by Language