I want to catch all function calls like....
file()
fopen() or whatever
Anyone dare to give a prage match for this one. Mind that it could be $arr['file'] or something tricky. I want to catch function calls only.
I have come to this till now ...but it kind of fails
So maybe do not look at it at all.
Code: Select all
$preg = '%\b(file)\b(?![\'\"]\])\s*[\(\'\"].*\$.*[\)\'\"]%';Another better way would be an PHP BNF parser..if anyone knows about such stable thing.
Thanks a lot for time spend.
edit: just noticed this is better for regexp board. sorry