Something that really would like to know but never found out are shortcuts in PHP.
I am currently coding a function with a foreach loop with just a sing
foreach
You can use it for simple things like:
if($a === true) continue;
But for some more complicated sub-conditions it may cause you problems:
$a = false; $b = false; if ($a === true) if ($b === true) echo 1; else echo 2;
With the code above, you would expect to see "2" as output, but you won't.