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. Link to comment https://forums.phpfreaks.com/topic/205828-dump-all-variables-in-memory/ Share on other sites More sharing options...
sw0o0sh Posted June 25, 2010 Share Posted June 25, 2010 $vars = get_defined_vars(); print_r($vars); Link to comment https://forums.phpfreaks.com/topic/205828-dump-all-variables-in-memory/#findComment-1077064 Share on other sites More sharing options...
haku Posted June 25, 2010 Author Share Posted June 25, 2010 Thanks mate! Link to comment https://forums.phpfreaks.com/topic/205828-dump-all-variables-in-memory/#findComment-1077066 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.