For a long time if I wanted to change the state of a variable between true and false (toggling). In PHP I would do something like…
$switch = true; if($switch == true){ $switch = false; }else{ $switch = true }
That worked fine, then there came Ternary shorthand
$switch = true; $switch = ($switch == true ? false : true);
Not bad eh? Much easier to read. Then came this
$switch = true; $switch = !$switch;
If you read it out loud it sounds like, ‘Switch is not true?’ So the answer would be either
True = $switch is false
Or
False = $switch is true