Basic PHP Programming Question:

Download Job Interview Questions and Answers PDF

Explain the ternary conditional operator in PHP?

PHP Interview Question
PHP Interview Question

Answer:

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

Download PHP Interview Questions And Answers PDF

Previous QuestionNext Question
How To Turn On the Session Support in PHP?What is the difference between include and require?