I support an OO PHP application that loads everything in $ this array. When I do a var dump on $ this to find out how to access the value, I get dozens of pages of output. Hunting the array elements that I need is very time consuming.
For example, if I want to find where the territory of the client is stored, I need to find out the hierarchy of the array using print_r or var_dump and look at [ edit: and search]] on the output until I find out the path.
for example: $ this-> Billing-> Cst-> Record ['Territory']
Is there a better way to do this, or some tools / methods that I can use. For example, is there a quick way to find the path to the variable ['Territory'] throughout the array directly?
source
share