← All docs

strncasecmp()

Compares the first n bytes of two strings, ignoring ASCII case.

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

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how strncasecmp is implemented in the compiler, see the internals page.