haku Posted June 25, 2010 Share Posted June 25, 2010 Does anyone know if there is a way to dump all the variables held in memory at a given time? I'm altering a 3rd party application, and I'm sure that the user ID is probably already saved into a variable somewhere, and if possible I want to recover it without doing another DB query, but I have no idea what the variable is, or if the ID even exists. So if there were a way to just dump all current variables that would be the easiest way for me to find out. Quote Link to comment Share on other sites More sharing options...
sw0o0sh Posted June 25, 2010 Share Posted June 25, 2010 $vars = get_defined_vars(); print_r($vars); Quote Link to comment Share on other sites More sharing options...
haku Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks mate! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.