therealwesfoster Posted February 13, 2008 Share Posted February 13, 2008 Is it possible to dump all the vars used in the script instead of just arrays? Link to comment https://forums.phpfreaks.com/topic/90911-dump-all-vars/ Share on other sites More sharing options...
cooldude832 Posted February 13, 2008 Share Posted February 13, 2008 var_dump will dump a var, but why are you triyng to do this print_r($_GLOBALS) should also work Link to comment https://forums.phpfreaks.com/topic/90911-dump-all-vars/#findComment-465924 Share on other sites More sharing options...
rhodesa Posted February 13, 2008 Share Posted February 13, 2008 No underscore... print_r($GLOBALS); Link to comment https://forums.phpfreaks.com/topic/90911-dump-all-vars/#findComment-465925 Share on other sites More sharing options...
therealwesfoster Posted February 13, 2008 Author Share Posted February 13, 2008 I'm messing around with string manipulation. Just a hobby. I'm setting $POST vars to regular variables, going to dump them with a function, and format them into a template. All in 1 function... I'm bored I'll try it out Link to comment https://forums.phpfreaks.com/topic/90911-dump-all-vars/#findComment-465926 Share on other sites More sharing options...
DyslexicDog Posted February 13, 2008 Share Posted February 13, 2008 If all your variables are part of the post array you can print_r($_POST) or var_dump($_POST). Link to comment https://forums.phpfreaks.com/topic/90911-dump-all-vars/#findComment-465959 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.