note 91271 added to function.parse-ini-file

From: Date: Wed, 03 Jun 2009 09:49:08 +0000
Subject: note 91271 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-156309@lists.php.net to get a copy of this message
In response to arnapou's code at: http://www.php.net/manual/en/function.parse-ini-file.php#78221 I have added a couple of lines to remove the commented part starting from # at positions other than beginning of the line http://pastebin.com/f717a8617 Features: #Read file : $ini = INI::read('myfile.ini'); #Write file : INI::write('myfile.ini', $ini); #Features : #- support [] syntax for arrays #- support . in keys like bar.foo.something = value #- true and false string are automatically converted in booleans #- integers strings are automatically converted in integers #- keys are sorted when writing #- constants are replaced but they should be written in the ini file between braces : {MYCONSTANT} ---- Server IP: 69.147.83.197 Probable Submitter: 202.79.40.142 ---- Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php Edit -- https://master.php.net/note/edit/91271 Del: integrated -- https://master.php.net/note/delete/91271/integrated Del: useless -- https://master.php.net/note/delete/91271/useless Del: bad code -- https://master.php.net/note/delete/91271/bad+code Del: spam -- https://master.php.net/note/delete/91271/spam Del: non-english -- https://master.php.net/note/delete/91271/non-english Del: in docs -- https://master.php.net/note/delete/91271/in+docs Del: other reasons-- https://master.php.net/note/delete/91271 Reject -- https://master.php.net/note/reject/91271 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156309) next »