note 52187 deleted from function.var-export by aidan

From: Date: Sun, 01 May 2005 04:59:40 +0000
Subject: note 52187 deleted from function.var-export by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88814@lists.php.net to get a copy of this message
Note Submitter: james at colossalus dot com ---- Tip for using the _var_export() code below with objects (top level, or nested): In the original design of the function, the same class name is used. This, however, may cause a conflict with the original class definition. To make sure all exports are created without conflicting with the original class definition, change this line... <? if ($class_name == "stdClass") $class_name = "_{$class_name}_"; ?> to this... <? $class_name = "_{$class_name}_"; ?> Regards.

« previous php.notes (#88814) next »