$str = var_dump()
| From: | elias | Date: | Fri, 27 Jul 2001 10:08:06 +0000 |
| Subject: | $str = var_dump() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-59902@lists.php.net to get a copy of this message | ||
Hello!
Actually, var_dump() dumps directly the structure/content of a variable to
the browser...
Now is there is anyway to capture this output and assign it to a string and
then store it to a file?
for logging/debugging purpose?
$str = var_dump($arrays);
echo "on [time] [date] varname dump=$str";
//elias