Ti servono:
Glob
http://php.net/manual/en/function.glob.php
File_get_contents
http://php.net/manual/en/function.file-get-contents.php
Substr_count
http://php.net/manual/en/function.substr-count.php
Direi in quell'ordine, ovviamente per ottenere quello che ti serve il count lo dovrai fare tre volte (per le static, le public e le function)

Rispondi quotando