src/ReadiniFile.php
public static function get($ini_file, $scanner_mode = INI_SCANNER_RAW)
    {
        self::$path_to_ini_file = $ini_file;

        if (file_exists(self::$path_to_ini_file) === true) {
            self::$data_ini_file = @parse_ini_file(self::$path_to_ini_file, true, $scanner_mode);
        } else {
            throw new \Exception(sprintf('File ini does not exist: %s', self::$path_to_ini_file));
        }

        if (self::$data_ini_file === false) {
            throw new \Exception(sprintf('Unable to parse file ini: %s', self::$path_to_ini_file));
        }

        return self::$data_ini_file;
    }
public static function get($ini_file, $scanner_mode = INI_SCANNER_RAW)
    {
        self::$path_to_ini_file = $ini_file;

        if (file_exists(self::$path_to_ini_file) === true) {
            self::$data_ini_file = @parse_ini_file(self::$path_to_ini_file, true, $scanner_mode);
        } else {
            throw new \Exception(sprintf('File ini does not exist: %s', self::$path_to_ini_file));
        }

        if (self::$data_ini_file === false) {
            throw new \Exception(sprintf('Unable to parse file ini: %s', self::$path_to_ini_file));
        }

        return self::$data_ini_file;
    }
public static function get ( $ ini_file , $ scanner_mode = INI_SCANNER_RAW ) { self :: $ path_to_ini_file = $ ini_file ; if ( file_exists ( self :: $ path_to_ini_file ) === true ) { self :: $ data_ini_file = @ parse_ini_file ( self :: $ path_to_ini_file , true , $ scanner_mode ) ; } else { throw new \ Exception ( sprintf ( 'File ini does not exist: %s' , self :: $ path_to_ini_file ) ) ; } if ( self :: $ data_ini_file === false ) { throw new \ Exception ( sprintf ( 'Unable to parse file ini: %s' , self :: $ path_to_ini_file ) ) ; } return self :: $ data_ini_file ; }
method for get data of ini file.

@param string $ini_file     path of ini file
@param int    $scanner_mode scanner mode INI_SCANNER_RAW INI_SCANNER_TYPED or INI_SCANNER_NORMAL

@return array ini file data in a array
method for get data of ini file .