Expression preceding the '?' is evaluated, if it’s true, then the expression preceding the ':' is executed, otherwise, the expression following ':' is executed.
Liked By
Write Answer
Explain the ternary conditional operator in PHP?
Join MindStick Community
You have need login or register for voting of answers or question.
Anonymous User
04-May-2012