note 99943 added to function.parse-ini-file
| From: | uramihsayibok at osu1 dot php dot net | Date: | Thu, 16 Sep 2010 08:10:39 +0000 |
| Subject: | note 99943 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172627@lists.php.net to get a copy of this message | ||
Undocumented feature!
Using ${...} as a value will look to
1) an INI setting, or
2) an environment variable
For example,
<?php
print_r(parse_ini_string('
php_ext_dir = ${extension_dir}
operating_system = ${OS}
'));
?>
Array
(
[php_ext_dir] => ./ext/
[operating_system] => Windows_NT
)
Present in PHP 5.3.2, likely in 5.x, maybe even earlier too.
----
Server IP: 208.69.120.55
Probable Submitter: 75.172.108.185
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/99943
Del: integrated -- https://master.php.net/note/delete/99943/integrated
Del: useless -- https://master.php.net/note/delete/99943/useless
Del: bad code -- https://master.php.net/note/delete/99943/bad+code
Del: spam -- https://master.php.net/note/delete/99943/spam
Del: non-english -- https://master.php.net/note/delete/99943/non-english
Del: in docs -- https://master.php.net/note/delete/99943/in+docs
Del: other reasons-- https://master.php.net/note/delete/99943
Reject -- https://master.php.net/note/reject/99943
Search -- https://master.php.net/manage/user-notes.php