EXPLAIN THE TERNARY CONDITIONAL OPERATOR IN PHP?

Arun Singh

Total Post:309

Points:1545
Posted by  Arun Singh
PHP 
PHP
 2166  View(s)
Ratings:
Rate this:
  1. Arun Singh

    Post:309

    Points:1545
    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.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!