note 99424 deleted from function.parse-ini-file by mazzanet
| From: | mazzanet@php.net | Date: | Tue, 17 Aug 2010 01:20:26 +0000 |
| Subject: | note 99424 deleted from function.parse-ini-file by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-171745@lists.php.net to get a copy of this message | ||
Note Submitter: chalgoman at gmail dot com
----
Can someone tell me, what exactly is the advantage of parsing ini files to following way for
example:
<?php
return array('
'section'=>array(
'something'=>1234,
'something_else'=>4321
)
'); // some sections, values, etc.
?>
And then getting the configuration in that way:
<?php
$config = require_once('config.php'); // where config.php is the file above
?>
I think that this method is running faster and is more secure.. am I right?