Currently I am working on a large php project and using xampp server and brackets IDE. Can anyone please tell me how to find the specific line or file where the variable is first defined.
Asked
Active
Viewed 124 times
-3
-
1`ctrl+f` then type variable name. – Scott Jul 21 '15 at 15:08
-
try [this question](http://stackoverflow.com/questions/2970806/find-where-a-variable-is-defined-in-php-and-or-smarty) or if you are trying to do it from code and know the physical site of origin you can do `$origin = __LINE__;` to get the line number. – CalebB Jul 21 '15 at 15:11
-
grep -Rn '${variable_name/pattern}' * | less – Answers_Seeker Jul 21 '15 at 15:14
-
thanks for the reply but variable defined in a separate file so i cant use find option – Pankaj Agrawal Jul 21 '15 at 15:17