D
D
Dmitry2016-04-08 12:19:27
PHP
Dmitry, 2016-04-08 12:19:27

How to find where a variable is used in PHP?

There is an index.php page in which the catalog component is connected, the $filter_site global variable is declared on this page and a named array is placed in it. Searching for a project in Atom does not find anything. How to find where this variable is used? Can it be possible to write something to the variable that will help to find the place where it is used?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
J
JohnDaniels, 2016-04-08
@koyard

most likely the filter is used in the form "FILTER_NAME" => "filter_site" when initializing some component (we're talking about Bitrix, right?). That is, search for ""filter_site", without the dollar sign

D
DireX, 2016-04-08
@xDireX

Use a normal IDE. Here are a few, in flavor and color:
1. PhpShtorm
2. NetBeans
All you have to do is hold down ctrl and click on a variable.

I
IceJOKER, 2016-04-08
@IceJOKER

Total commander -> Alt + F7

S
Sergey, 2016-04-08
@Logic87

Look in the dbconn.php file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question