Advertisement
Google Ad Slot: content-top
PHP Shorthand if Statements
This is used to simplify simple if...else conditions. It condenses the if...else logic into a single line of code, making your code more compact and sometimes easier to read.
Note
This technique is known as Ternary Operators, or Conditional Expressions.