Re: Simple (?) var_dump question

From: Date: Fri, 12 Sep 2003 17:05:36 +0000
Subject: Re: Simple (?) var_dump question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162437@lists.php.net to get a copy of this message
From: "Wouter van Vliet" <wouter@esctoday.com> > aiaiaia ... you are all pretty right, for another function was forged. > var_export has a "return" flag as second argument where print_r and var_dump > both have other variables as second (and third, and fourth, and sixth) .. > > So you can do: $logger->debug(var_export($Var), true)); which will log the > var to your log. print_r() is also a BOOL for the second argument that controls whether a value is returned or displayed. The only difference between print_r() and var_export() produces valid PHP code. The output from var_export() can only be captured with output buffering. ---John Holmes...

« previous php.general (#162437) next »