Returns whether the path has an extension.
public static hasExtension ( string $path, string | array | null $extensions = null, boolean $ignoreCase = false ) : boolean | ||
$path | string | The path string. |
$extensions | string | array | null | If null or not provided, checks if an extension exists, otherwise checks for the specified extension or array of extensions (with or without leading dot). |
$ignoreCase | boolean | Whether to ignore case-sensitivity (requires mbstring extension for correct multi-byte character handling in the extension). |
리턴 | boolean | Returns `true` if the path has an (or the specified) extension and `false` otherwise. |