示例#1
0
 public static function fileInArray($key_file, $files, $is_key_search = false)
 {
     if ($is_key_search) {
         $files = array_keys($files);
     }
     foreach ($files as $f => $file) {
         if (jbetoloHelper::matches($file, $key_file)) {
             return array($f, $file);
         }
     }
     return false;
 }