note 27173 deleted from function.var-export by sniper
| From: | sniper@php.net | Date: | Sun, 28 Sep 2003 22:40:34 +0000 |
| Subject: | note 27173 deleted from function.var-export by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-57234@lists.php.net to get a copy of this message | ||
Note Submitter: slasherx@leaseyourmind.com
----
matt at unlisted dot com, if that's the case then you could just use output buffering and catch
the output. like so,
<?
ob_start(); var_export($whatever); $to_be_exported=ob_get_contents(); ob_end_clean(); exit;
?>
$to_be_exported would then hold whatever you want formattted.
Note, var_export doesn't do a complete job tho. You need to actually add a ';' at the
end of the string you are returned to make it syntactically clean.