コード例 #1
0
ファイル: File.php プロジェクト: hongbo819/LJL
 public static function get($file, $intoAnArray = false)
 {
     self::$_file = self::exists($file);
     if (!self::$_file) {
         //throw new LJL_Exception('File does not exist or is not readable: '.$file);
         //trigger_error('File does not exist or is not readable: ' . $file);
         return false;
     }
     unset($file);
     if (false == $intoAnArray) {
         return file_get_contents(self::$_file);
     } else {
         return file(self::$_file);
     }
 }