The Ternary Operator: Like If Statements, Just Simplifi

Tutorials Shared by the Internet Community

Advertisements


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

Statistics

  • Total Hits - 32673

  • Total Votes - 104 votes

  • Vote Up - 44 votes

  • Vote Down - 60 votes

  • Domain - www.talkphp.com

  • Category - PHP/Development

  • Submitted By - Devesh Khanna

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

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...


Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements