rfc:null-propagation
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rfc:null-propagation [2018/01/23 09:17] – daverandom | rfc:null-propagation [2018/01/23 10:14] – daverandom | ||
---|---|---|---|
Line 42: | Line 42: | ||
<code php> | <code php> | ||
+ | $foo = new Foo(null); | ||
$result = $foo-> | $result = $foo-> | ||
+ | var_dump($result); | ||
</ | </ | ||
+ | |||
+ | This operator does not suppress any errors that are generated by the left hand side of the expression, it only short-circuits the right hand side. | ||
===== Examples in other languages ===== | ===== Examples in other languages ===== | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
* [[http:// | * [[http:// | ||
rfc/null-propagation.txt · Last modified: 2018/01/29 16:33 by levim