public static function read($filename, $asObject = false)
    {
        if (file_exists($filename)) {
            if ($asObject) {
                return (object) parse_ini_file($filename, true, INI_SCANNER_TYPED);
            } else {
                return parse_ini_file($filename, true, INI_SCANNER_TYPED);
            }
        } else {
            return false;
        }
    }
public static function read($filename, $asObject = false)
    {
        if (file_exists($filename)) {
            if ($asObject) {
                return (object) parse_ini_file($filename, true, INI_SCANNER_TYPED);
            } else {
                return parse_ini_file($filename, true, INI_SCANNER_TYPED);
            }
        } else {
            return false;
        }
    }
public static function read ( $ filename , $ asObject = false ) { if ( file_exists ( $ filename ) ) { if ( $ asObject ) { return ( object ) parse_ini_file ( $ filename , true , INI_SCANNER_TYPED ) ; } else { return parse_ini_file ( $ filename , true , INI_SCANNER_TYPED ) ; } } else { return false ; } }
read an ini file.

@param string $filename the path and the name of the file to read
@param bool   $asObject true if the content should be returned as an object

@return object|false the content of the file or false if file does not exists
read an ini file .