title: PHP "with" keyword - what does "with" do?
body: <p>Can someone please explain what PHP "with" does? </p>
  
  <p><strong>Example begins:</strong></p>
  
  <p>Say I have a class:</p>
  
  <p><code>\App\fa_batch</code></p>
  
  <p><em>What is the difference between this statement:</em></p>
  
  <pre><code>$w = (with (new \App\fa_batch))
         // uses 'with'
         // returns App\fa_batch 
  </code></pre>
  
  <p><em>and this statement?</em></p>
  
  <pre><code>$n = (new \App\fa_batch)
         // does not use 'with'
         // also returns App\fa_batch 
  </code></pre>
  
  <p><strong>Context / Background Info:</strong></p>
  
  <p>I'm having trouble finding documentation for <code>with</code>, maybe because the PHP.net, stack overflow and google search engines considers <code>php "with" keyword</code> such a common search phrase.</p>
  
  <p>If context helps, I came across this usage of the word <code>with</code> from this answer: 
  <a href="https://stackoverflow.com/a/33222754/5722034">https://stackoverflow.com/a/33222754/5722034</a></p>