title: Reconstruct / get source code of a PHP function
body: <p>Can I programmatically get the source code of a function by its name?</p>
  <p>Like:</p>
  <pre><code>function blah($a, $b) { return $a*$b; }
  echo getFunctionCode(&quot;blah&quot;);
  </code></pre>
  <p>is it possible?</p>
  <p>Are there any php self-descriptive functions to reconstruct function/class code? (I mean instead of getting source code right from the source file.)</p>
  <p>In Java there exists: <a href="http://java.sun.com/developer/technicalArticles/ALT/Reflection/" rel="noreferrer">http://java.sun.com/developer/technicalArticles/ALT/Reflection/</a></p>