php-general | 2001072

[PHP] Re: $str = var_dump() From: Jonas Delfs (jonas <email protected>)
Date: 07/27/01

"Elias" <elias_bachaalany <email protected>> skrev i en meddelelse
news:20010727091037.33731.qmail <email protected>

> 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

-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>