title: How to pass a pointer to a function (and its parameters!) in PHP
body: <p>After a while, I was finally able to pass a pointer to a function like this:</p>
  
  <pre><code>function originalFunction($value) {
    print "I am in the function, with value $value";
  }
  
  function testFunctionPointer($functionName, $id) {
    $functionName($id);
  }
  
  $test = testFunctionPointer("originalFunction", 200);
  </code></pre>
  
  <p>Basically, I realized that if you pass a STRING and you use that string as a function name, the function is executed.
  In fact, in the example above, the "originalFunction" is correctly called.</p>
  
  <p>But how can I get the parameter working? It's always zero...</p>
  
  <p>PS: I know that what I am doing is not clean, it shouldn't be done, etc. etc. etc. But it's just for an INTERNAL PROJECT I am doing for MYSELF, so nobody will get hurt by this ;)</p>
  
  <p>Thank you in advance!</p>