PHP - Conditional Statements
Find the error in this PHP code using ternary operator:
$score = 75;
$grade = $score > 60 ? 'Pass' 'Fail';
echo $grade;
$score = 75;
$grade = $score > 60 ? 'Pass' 'Fail';
echo $grade;
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions