Menu
I am in a need to go through php files in a folder, i.e list all php files in that folder, read contents of each file, check whether few predefined variable names are present in code, if present read their values.
For example say a particular php file contains following variables.
$value1 = ‘value of one’;
$value2 = ‘value of two’;
Then my script should be capable of reading content of that file, extract values of $value1 and $value2.
Is there any simpler way to do that.
Really a great help if you can suggest a solution and that will be highly appreciated.