PHP shorthand syntax
Posted
by alex
on Stack Overflow
See other posts from Stack Overflow
or by alex
Published on 2010-03-19T04:48:19Z
Indexed on
2010/03/19
4:51 UTC
Read the original article
Hit count: 285
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?
© Stack Overflow or respective owner