Свойство | Type | Description | |
---|---|---|---|
$validExtensions |
Méthode | Description | |
---|---|---|
getSectionOf ( array $array, string $section = '' ) : array | mixed | Return a section of an array based on the key passed in | |
isFile ( string $resource ) : boolean | Test if a given resource is a file name or a file path | |
readFrom ( string $input ) : string | Read from a file or string | |
validateExtension ( string $filepath ) : boolean | Validate a file extension against a list of provided valid extensions |
public validateExtension ( string $filepath ) : boolean | ||
$filepath | string | file path of the file we want to check |
Résultat | boolean | Whether or not the extension is valid |