The Ternary operator in PHP
  The Ternary operator in PHP
2D Graphics
3D Graphics
Web Design & Development
Business Applications
Business Development
Databases
Desktop Programming
Operating Systems
Video Editing
Miscellaneous
Newsletter
User Login
  • Username
  • Password
Stats
  • Tutorials: 39,021
  • Categories: 572

PHP Tutorials : The Ternary operator in PHP

The Ternary comparison operator is an alternative to the if-else statement, it's shorter and could be used to easily do a significant difference depending on a condition without the need of a if statement. The Ternary operator is made for two different actions, one if the condition is true, the other one if it's false but with nested Ternary operators we can use it like an if-elseif.else statement(more to that later). The Ternary operator in PHP  tutorial
    View Tutorial

Detailed Information

     Tutorial: The Ternary operator in PHP
     Date Listed: 2010-01-27
     Submitted By: phb50530
     Total Hits: 1735
     Rating Tutorial Rating 3.05Tutorial Rating 3.05Tutorial Rating 3.05Tutorial Rating 3.05Tutorial Rating 3.05 (57 votes)

    Discuss Tutorial
    Comment On Tutorial
    View Tutorial
    Report Broken Link

 





© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 8 - Follow our Sitemap