Are there any way for me to use PHP to parse information of a PHP file, something likes : what functions/classes it has, which functions are built-in/user-defined or how many variables are there….?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use the function
token_get_all()to parse PHP source.