note 90818 added to function.var-export

From: Date: Mon, 11 May 2009 18:11:05 +0000
Subject: note 90818 added to function.var-export
Groups: php.notes 
Request: Send a blank email to php-notes+get-154458@lists.php.net to get a copy of this message
Glen, Surprisingly array_merge() somehow handles recursive references as well. So we can write: <?php $lunars=array_merge($GLOBALS); $lunars[GLOBALS]="-deleted-"; $lunars_str = var_export($gbals, TRUE); ?> until the bug in var_export() function is removed. ---- Server IP: 69.147.83.197 Probable Submitter: 212.174.90.237 ---- Manual Page -- http://www.php.net/manual/en/function.var-export.php Edit -- https://master.php.net/note/edit/90818 Del: integrated -- https://master.php.net/note/delete/90818/integrated Del: useless -- https://master.php.net/note/delete/90818/useless Del: bad code -- https://master.php.net/note/delete/90818/bad+code Del: spam -- https://master.php.net/note/delete/90818/spam Del: non-english -- https://master.php.net/note/delete/90818/non-english Del: in docs -- https://master.php.net/note/delete/90818/in+docs Del: other reasons-- https://master.php.net/note/delete/90818 Reject -- https://master.php.net/note/reject/90818 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#154458) next »