Counting all lines of code in .php files given a dir
<p>could you help me to make a little function that given a dir it returns the number of lines (counts <code>\r\n</code>) of <code>.php</code> files between <code>&lt;?php and ?&gt;</code>?</p>

<p>Usage:</p>

<pre><code>echo countsLineOfCode('D:/dir/code/');    
// returns 323;
</code></pre>

<p>Thanks</p>
