halojoy wrote:
Or maybe you are after something like [man]get_defined_constants/man
which will list all define( 'LABEL', 'value' ); // some random comment about defines stetement
Regards 🙂
halojoy
I would like to extract the LABEL and value of each defines statement and also the description of each.
The idea is to have a form page that reads the definitions.php(i have called it for now) for all definitions statements, it extract the LABEL, value and comment from each statement in it, the idea of the comment is to be used as the description on the editing form for each definition statement.
Even if i had to nominate the LABEL of each definition to look for would be fine as that will be a constant
hope this is clearer 🙂 thank you so much for you comment