I have a large PHP class that has a large variable/function declaration and I wanted to chek if all the variables/functions are being used in the script. Is there something that does this?
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.
The dynamic nature of the PHP language (eval, using variables/functions via strings, etc…) makes it theoretically impossible to programmatically determine if a function or variable is ever used in any and all possible situations.
Manual code analysis is, unfortunately, your best bet.