note 50830 deleted from function.var-export by aidan

From: Date: Sun, 01 May 2005 04:58:36 +0000
Subject: note 50830 deleted from function.var-export by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88810@lists.php.net to get a copy of this message
Note Submitter: rwruck ---- The returned representation is NOT always valid PHP code. At least as of PHP 4.3.9, if you var_export objects as in: <?php class MyClass { } echo '$var = '.var_export(array(1, new MyClass(), 2), true).';'; ?> The result will be unparsable: $var = array ( 0 => 1, 1 => class myclass { }, 2 => 2, );

« previous php.notes (#88810) next »