title: Calling additional function after a PHP ECHO triggering AJAX success
body: <p>Is it possible to have PHP call another "independent" function after returning the <code>echo</code> triggering the <code>success</code> part of my AJAX?</p>
  
  <p>I have an AJAX call that waits for <code>echo "success"</code> from PHP, but whenever I add an additional PHP function after <code>echo "success"</code> my AJAX <code>success</code> does not trigger anymore.</p>
  
  <pre class="lang-php prettyprint-override"><code>function myFunction($foo){
    // do something //
    echo "success";
    callToMyOtherFunction();
  }
  </code></pre>