strncasecmp()
function strncasecmp(string $string1, string $string2, int $length): int
Compares the first n bytes of two strings, ignoring ASCII case.
Parameters:
$string1(string)$string2(string)$length(int)
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported through a declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/strncasecmp.rs).
No examples yet. Check examples/ and showcases/ for usage patterns.
Internals
For how strncasecmp is implemented in the compiler, see the internals page.