note 27173 added to function.var-export

From: Date: Tue, 26 Nov 2002 04:47:44 +0000
Subject: note 27173 added to function.var-export
Groups: php.notes 
Request: Send a blank email to php-notes+get-39970@lists.php.net to get a copy of this message
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. -- http://www.php.net/manual/en/function.var-export.php http://master.php.net/manage/user-notes.php?action=edit+27173 http://master.php.net/manage/user-notes.php?action=delete+27173 http://master.php.net/manage/user-notes.php?action=reject+27173

« previous php.notes (#39970) next »