note 10479 added to var_dump
| From: | dward at maidencreek dot com | Date: | Fri, 05 Jan 2001 23:07:00 +0000 |
| Subject: | note 10479 added to var_dump | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9421@lists.php.net to get a copy of this message | ||
With PHP4 you can now put the var_dump output into a string using the output buffer functions.
So to dump the variable $array into $output you can use
ob_start();
var_dump($array);
$output = ob_get_contents();
ob_end_clean();
http://www.php.net/manual/function.var-dump.php