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 Quote 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()); Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/152260-solved-getting-all-variables/#findComment-799592 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.