PHP DAY 8 Condition ... Simple Condition
2017-09-25
Source

Source

Output

Output

PHP uses

( condition )? true : fault;

as a grammar for simple condition testing.

It is same as

If condition then true else fault

in BASIC.