note 31777 added to function.parse-ini-file
| From: | Storm at rack1 dot php dot net | Date: | Sat, 03 May 2003 11:56:37 +0000 |
| Subject: | note 31777 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-47418@lists.php.net to get a copy of this message | ||
Some results from this function:
; Sample ini file...
b_false=false
b_true=true
i_zero=0
i_one= 1
n_null=NULL
Results:
Array (
b_false => ' '
b_true => '1'
i_zero => '0'
i_one => '1'
n_null => ' '
)
Apparently, the function always returns the keys & values as strings. The boolean false and the
NULL value are returned as empty strings, whereas true returns a string value of '1'.
--
http://www.php.net/manual/en/function.parse-ini-file.php
http://master.php.net/manage/user-notes.php?action=edit+31777
http://master.php.net/manage/user-notes.php?action=delete+31777
http://master.php.net/manage/user-notes.php?action=reject+31777