title: PHP Continue function execution after return statement
body: <p>Is this achievable? If not, what are <em>other ways</em> in doing it best?</p>
  
  <p>I'm trying to: </p>
  
  <ol>
  <li>Return <em>true</em> after a <em>successful</em> function call is made.</li>
  <li>Let the called function still <em>execute</em> even <em>after return</em> statement.</li>
  </ol>
  
  <p>To make things clearer:</p>
  
  <pre><code>function foo() {
    var $data; // a very large data
    var $check = $this-&gt;bar($data); // gets true
    if ($check) {
      echo "FOO: Bar received my message!";
    }
  }
  
  function bar($data) {
    return true; // returns true, now foo doesn't care what bar will do
    echo "BAR: returned true to foo, will now call foobar!";
  
    // some code to process $data
  
    $this-&gt;foobar(); // but hopefully still execute this line
  }
  
  function foobar() {
    echo "FOOBAR: Hello, World!";
    return;
  }
  </code></pre>
  
  <p>Expected output: (<em>asynchronously</em>)</p>
  
  <p><code>FOO: Bar received my message!</code></p>
  
  <p><code>BAR: returned true to foo, will now call foobar!</code></p>
  
  <p><code>FOOBAR: Hello, World!</code></p>