Class for reading/writing ini config file
This preserves comments etc, unlike parse_ini_file and is based heavily on a solution provided at: stackoverflow.com/questions/9594238/good-php-classes-that-manipulate-ini-files
category |
Tasks |
---|---|
package |
phing.tasks.ext |
author |
Ken Guest kguest@php.net |
license |
LGPL v3 or later http://www.gnu.org/licenses/lgpl.html |
link |
get(string $section, string $key) : void
string
Section
string
Key
read(string $file) : void
string
filename
remove(string $section, string $key) : void
If key is not specified, then the entire section will be removed.
string
Section to manipulate/remove
string
Name of key to remove, might be null/empty
set(string $section, string $key, string $value) : void
string
Section
string
Key
string
Value
write(string $file) : void
string
filename
lines : array
var |
---|
array