PHP Basic Tutorial
MySQL Connection
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.
Try it yourself
Try it yourself
Note
This technique is known as Ternary Operators, or Conditional Expressions.