title: Accept function as parameter in PHP
body: <p>I've been wondering whether is possible or not to pass a function as parameter in PHP; I want something like when you're programming in JS:</p>
  
  <pre><code>object.exampleMethod(function(){
      // some stuff to execute
  });
  </code></pre>
  
  <p>What I want is to execute that function somewhere in exampleMethod. Is that possible in PHP?</p>