How can i get the function name from a .php file ? Need a php script
<p>Suppose there is a input file. The file contains php class with many functions and public variable.</p>

<p>I need a php script that would take that input file and count how many php function are there.
This script will also print the function name like ..</p>

<pre><code>public function hasMethod($method)
public function isVirtualField($field)
</code></pre>

<p>Can anyone post such php script to do this ?</p>
