phpknight Posted July 15, 2007 Share Posted July 15, 2007 Hi, Can somebody give me a quick example of a var_dump that I could put in a string that never shows up on the screen? I would like to send something by email, but I am not sure about all the output buffering stuf and obviously do not want to mess it up. phpknight Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/ Share on other sites More sharing options...
pocobueno1388 Posted July 15, 2007 Share Posted July 15, 2007 I don't really know what you mean... var_dump($var); www.php.net/var_dump Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/#findComment-299010 Share on other sites More sharing options...
phpknight Posted July 15, 2007 Author Share Posted July 15, 2007 Right, but that puts the output on the screen. I just want to put it in a string to email myself the information. Do you know what I mean? Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/#findComment-299019 Share on other sites More sharing options...
pocobueno1388 Posted July 15, 2007 Share Posted July 15, 2007 Try doing: <?php $variable = var_dump($var); ?> Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/#findComment-299022 Share on other sites More sharing options...
trq Posted July 15, 2007 Share Posted July 15, 2007 Use var_export instead. Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/#findComment-299023 Share on other sites More sharing options...
phpknight Posted July 15, 2007 Author Share Posted July 15, 2007 Okay, thanks! Link to comment https://forums.phpfreaks.com/topic/60111-solved-simple-var_dump-not-to-browser/#findComment-299083 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.