コード例 #1
0
ファイル: FileHandler.class.php プロジェクト: rhymix/rhymix
 /**
  * Reads ini file, and puts result into array
  *
  * @see self::writeIniFile()
  * @param string $filename Path of the ini file
  * @return array ini array (if the target file does not exist, it returns FALSE)
  */
 public static function readIniFile($filename)
 {
     if (!Rhymix\Framework\Storage::isReadable($filename)) {
         return false;
     }
     $arr = parse_ini_file($filename, true);
     return is_array($arr) ? $arr : array();
 }