title: In PHP, can you instantiate an object and call a method on the same line?
body: <p>What I would like to do is something like this:</p>
  
  <pre><code>$method_result = new Obj()-&gt;method();
  </code></pre>
  
  <p>Instead of having to do:</p>
  
  <pre><code>$obj = new Obj();
  $method_result = $obj-&gt;method();
  </code></pre>
  
  <p>The result doesn't actually matter to me in my specific case.  But, is there a way to do this?</p>