Using Shorthand if-else Conditionals in PHP to Make Code More Succinct


Part of Screencast Series: Exploring PHP


Published August 2015

Quick tip to make your code more succinct

In this screencast I will show you how to make your code more succinct by using the ternary operator to write shorthand if-else conditional statements in PHP.

Comments

Have your say! or become a member now to take part in the discussion

Loading...
Meet your instructor
Lami Ada

Lami is an IT consultant with a focus on web, database, and mobile technologies. He is very versed in technologies that run on both Microsoft and Linux platforms.