note 16997 deleted from function.var-dump by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 23:57:56 +0000 |
| Subject: | note 16997 deleted from function.var-dump by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22397@lists.php.net to get a copy of this message | ||
The idea has been mentioned several times before, this is just an actual function for returning
var_dump()'s output as a string - I usually use it like
echo "<PRE>".string_var_dump($myarray)."</PRE>";
function string_var_dump($variable) {
ob_start();
var_dump($variable);
$dumpedvariable = ob_get_contents();
ob_end_clean();
return $dumpedvariable;
}