fnmatch()
function fnmatch(string $pattern, string $filename, int $flags = 0): bool
Matches a filename against a pattern.
Parameters:
$pattern(string)$filename(string)$flags(int), default0, optional
Returns: bool
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/fnmatch.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how fnmatch is implemented in the compiler, see the internals page.