ExamVeda
Login
Home
This question belongs to PHP Basic PHP
Basic PHP
?

If $a = 12 what will be returned when ($a == 12) ? 5 : 1 is executed?

Answer & Solution
Correct Answer: Option D
?: is known as ternary operator. If condition is true then the part just after the ? is executed else the part after : .
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.