EXPLAIN THE TERNARY CONDITIONAL OPERATOR IN PHP?

Arun Singh

Total Post:310

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

    Post:310

    Points:1550
    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!