Q:

List all arrays in PHP

Is there a method or function in PHP which can list out all the arrays and their content that are currently in memory?  I'm trying to track down a problem in someone else's code that used CodeIgniter and I'm not having a lot of success.

A:

use get_defined_vars() function, reference the manual.
var_dump( get_defined_vars () );

