The Ternary Operator: Like If Statements, Just Simplifi

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

The Ternary Operator: Like If Statements, Just Simplifi

Ternary Conditionals are one of those things in php that can save some time when writing code
http://www.talkphp.com/absolute-beginners/1568-ternary-conditionals.html
  • Total Hits: 14810

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 140 votes

  • Category: PHP/Development

  • Submitted on: 2008-03-16 05:06:05

  • Submitted By: Devesh Khanna

  • Set as Favorite

Description:

Ternary Conditionals are one of those things in php that can save some time when writing code and possibly make your code easier to read. I think many people don't use them because they tend to think they look a little bizarre. We'll show you how it's done!    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.57%  54
 Two starsTwo star  Vote LeftVote MiddleVote Right 10%  14
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.43%  16
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 11.43%  16
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.57%  40

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements