note 26153 added to function.parse-ini-file
| From: | fbeyer at clickhand dot de | Date: | Sun, 20 Oct 2002 10:47:56 +0000 |
| Subject: | note 26153 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-38319@lists.php.net to get a copy of this message | ||
I guess that parse_ini_file() uses the same parser that PHP uses to parse the php.ini file.
That's why 'Yes', 'No', 'True', 'False',
'None' are automatically converted to booleans (independent of system language, see note
above).
For a complete syntax and feature description, please see the php.ini-dist file (comment block
'About this file' on top).
Moreover it should be mentioned that parse_ini_file() is pretty fast. It is even faster (and
cleaner) to put configuration information in an ini-file than using a PHP script using define()!
--
http://www.php.net/manual/en/function.parse-ini-file.php
http://master.php.net/manage/user-notes.php?action=edit+26153
http://master.php.net/manage/user-notes.php?action=delete+26153
http://master.php.net/manage/user-notes.php?action=reject+26153