note 50741 added to function.parse-ini-file
| From: | sly at noiretblanc dot org | Date: | Tue, 08 Mar 2005 16:57:50 +0000 |
| Subject: | note 50741 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86113@lists.php.net to get a copy of this message | ||
Be careful with the string "none", for example if you want to save a CSS border-style in
your config.ini file :
[style]
borderstyle=none
will return:
'style' => array ( 'borderstyle' => '' )
and not
'style' => array ( 'borderstyle' => 'none' )
The solution is to quote the string none :
[style]
borderstyle="none"
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+50741
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+50741&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+50741&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+50741&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+50741&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+50741&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+50741&report=yes
Search -- http://master.php.net/manage/user-notes.php