WordPress Development Question:

Described ternary conditional operator in PHP?

Tweet Share WhatsApp

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 Expert PDF Read All 31 WordPress Expert Questions
Previous QuestionNext Question
If the variable $a is equal to 5 and variable $b is equal to character a, what's the value of $$b?Tell me are the objects passed by value or by reference?