PHP shorthand syntax
- by alex
I've just came across this on GitHub.
($config === NULL) and $config = Kohana::config('email');
Is that the equivalent of
if ($config === NULL) {
$config = Kohana::config('email');
}
Is this commonplace? Would I expect other developers looking at my code if I used that first way to instantly know what it was doing?