note 108640 deleted from reserved.variables.globals by sobak
| From: | sobak@php.net | Date: | Tue, 22 Nov 2016 08:20:14 +0000 |
| Subject: | note 108640 deleted from reserved.variables.globals by sobak | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-207473@lists.php.net to get a copy of this message | ||
Note Submitter: Gratcy
----
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)
*/
?>