getExtension()
getExtension(string $path, string|array $extensions) : string|null
Get the extension of image file from disk.
Only supports png/jpg/gif. Optionally pass an acceptable extension (or array of extensions).
Parameters
string | $path | The fully qualified path to the file |
string|array | $extensions | Acceptable extensions |