title: Is there a "nullsafe operator" in PHP?
body: <p>Is there any way to write the following statement using some kind of <a href="http://docs.codehaus.org/display/GROOVY/Operators#Operators-SafeNavigationOperator" rel="noreferrer">safe navigation operator</a>?</p>
  <pre><code>echo $data-&gt;getMyObject() != null ? $data-&gt;getMyObject()-&gt;getName() : '';
  </code></pre>
  <p>So that it looks like this:</p>
  <pre><code>echo $data-&gt;getMyObject()?-&gt;getName();
  </code></pre>