WordPress Support Officer Question:

Download Job Interview Questions and Answers PDF

Define ternary conditional operator in PHP?

WordPress Support Officer Interview Question
WordPress Support Officer 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 Support Officer Interview Questions And Answers PDF

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