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 Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 15, 2007 Share Posted July 15, 2007 Try doing: <?php $variable = var_dump($var); ?> Quote Link to comment Share on other sites More sharing options...
trq Posted July 15, 2007 Share Posted July 15, 2007 Use var_export instead. Quote Link to comment Share on other sites More sharing options...
phpknight Posted July 15, 2007 Author Share Posted July 15, 2007 Okay, thanks! Quote Link to comment 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.