maddogandnoriko Posted April 2, 2009 Share Posted April 2, 2009 Is there way to "print" out every available variable available to the script? More specifically, every variable set by me in the script? I am rewritting a page and refining it and would like to eliminate anything unneeded. Thanks you for the advice, maddogandnoriko Link to comment https://forums.phpfreaks.com/topic/152260-solved-getting-all-variables/ Share on other sites More sharing options...
premiso Posted April 2, 2009 Share Posted April 2, 2009 var_dump(get_defined_vars()); Link to comment https://forums.phpfreaks.com/topic/152260-solved-getting-all-variables/#findComment-799562 Share on other sites More sharing options...
maddogandnoriko Posted April 2, 2009 Author Share Posted April 2, 2009 Thank you. I can't believe I haven't discovered this yet! That is a ton of info. Thanks maddogandnoriko Link to comment https://forums.phpfreaks.com/topic/152260-solved-getting-all-variables/#findComment-799592 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.