API IniFile - SierraKomodo/INILib GitHub Wiki

The IniFile class

Introduction

The IniFile class provides a single interface for reading, parsing, modifying, and writing INI data and files.

Class synopsis

IniFile {
    /* Methods */
    public void __construct ( string $file [, bool $readOnly = false [, int $scannerMode = INI_SCANNER_RAW ]]] )
    public void deleteEntry ( string $section , string $key )
    public void deleteSection ( string $section )
    public array[array[mixed]] fetchDataArray ( void )
    public mixed fetchEntry ( string $section , string $key )
    public array[mixed]|null fetchSection ( string $section )
    public void saveDataToFile( void )
    public void setEntry ( string $section , string $key , string $value )
    public void setSection ( string $section , array[mixed] $array [, bool $mergeArrays = false ])
}

Changelog

Version Description
v1.0.0 IniFile::Class introduced

Table of Contents