Re: $str = var_dump()
| From: | Jonas Delfs | Date: | Fri, 27 Jul 2001 10:20:31 +0000 |
| Subject: | Re: $str = var_dump() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-59912@lists.php.net to get a copy of this message | ||
"Elias" <elias_bachaalany@yahoo.com> skrev i en meddelelse
news:20010727091037.33731.qmail@pb1.pair.com...
> 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?
Output Control?
ob_start();
var_dump($flaf);
$var = ob_get_contents();
ob_end_clean();
--
Mvh./Best Regards
Jonas Delfs, http://delfs.dk
"Developers are being asked to do more with less, do it faster, and make it
fit with the existing systems and databases." - IDC