f::is($file, $value)

Checks if a file is of a certain type

  • $file (string)
    Full path to the file
  • $value (string)
    An extension or mime type
  • return (boolean)