hasZipExtension.php
Table of Contents
Functions
- hasZipExtension() : bool
- Checks if a file has a zip-related extension.
Functions
hasZipExtension()
Checks if a file has a zip-related extension.
hasZipExtension(string $filePath[, array<string|int, string> $zipExtensions = [FileExtension::ZIP] ]) : bool
Parameters
- $filePath : string
-
Path to the file.
- $zipExtensions : array<string|int, string> = [FileExtension::ZIP]
-
Optional list of valid zip-related extensions. Defaults to the single
.zipextension.
Tags
Return values
bool —True if the file has a recognized zip extension.