Codice PHP:
function is_type($file_type$require_file_type) {
    return 
strtolower($file_type) == strtolower($require_file_type);