Home > DeveloperSection > Interviews > Explain the ternary conditional operator in PHP?
Arun Singh

Total Post:312

Points:1560

Posted on    May-04-2012 8:12 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  1217  View(s)
Rate this:

Arun Singh

Total Post:312

Points:1560
Posted on    May-04-2012 12:00 AM

Expression preceding the '?' is evaluated, if it’s true, then the expression preceding the ':' is executed, otherwise, the expression following ':' is executed.

Recent Activities

Mayank Tripathi added new Question What is an Action?   2 minutes ago

Kamlakar Singh Created New Discussion How to use mootools in nodejs?   18 hours ago


Kamlakar Singh added new Blog Authentication in ASP.NET   19 hours ago

Don't want to miss updates? Please click the below button!