Interview Questions

Explain the ternary conditional operator in PHP?

PHP Interview Questions and Answers


(Continued from previous question...)

Explain the ternary conditional operator in PHP?

Expression preceding the ? is evaluated, if it’s true, then the expression preceding the : is executed, otherwise, the expression following : is executed.

(Continued on next question...)

Other Interview Questions