WordPress Question:
Download Questions PDF

What is the ternary conditional operator in PHP?

WordPress (CMS) Interview Question
WordPress (CMS) 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 WordPress (CMS) Interview Questions And Answers PDF

Previous QuestionNext Question
How to find out the number of parameters passed into function?Explain When are you supposed to use endif to end the conditional statement?