The Ternary Operator: Like If Statements, Just Simplifi

Tutorials Shared by the Internet Community

Advertisements


Synopsis

Ternary Conditionals are one of those things in php that can save some time when writing code

Statistics

  • Total Hits - 27032

  • Total Votes - 101 votes

  • Vote Up - 42 votes

  • Vote Down - 59 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! ...


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

Advertisements