public static function is_gif($file) { $file = strtolower($file); if (strpos($file, '.gif') > 0) { return true; } return false; }