note 108640 added to reserved.variables.globals

From: Date: Sun, 13 May 2012 19:03:53 +0000
Subject: note 108640 added to reserved.variables.globals
Groups: php.notes 
Request: Send a blank email to php-notes+get-187962@lists.php.net to get a copy of this message
this is technique that i always did for configuration file.. <?php $conf['conf']['foo'] = 'this is foo'; $conf['conf']['bar'] = 'this is bar'; function foobar() { global $conf; var_dump($conf); } foobar(); /* result is.. array 'conf' => array 'foo' => string 'this is foo' (length=11) 'bar' => string 'this is bar' (length=11) */ ?> ---- Server IP: 69.147.83.197 Probable Submitter: 122.144.5.218 ---- Manual Page -- http://www.php.net/manual/en/reserved.variables.globals.php Edit -- https://master.php.net/note/edit/108640 Del: integrated -- https://master.php.net/note/delete/108640/integrated Del: useless -- https://master.php.net/note/delete/108640/useless Del: bad code -- https://master.php.net/note/delete/108640/bad+code Del: spam -- https://master.php.net/note/delete/108640/spam Del: non-english -- https://master.php.net/note/delete/108640/non-english Del: in docs -- https://master.php.net/note/delete/108640/in+docs Del: other reasons-- https://master.php.net/note/delete/108640 Reject -- https://master.php.net/note/reject/108640 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#187962) next »