← All docs

strcasecmp()

Binary safe case-insensitive string comparison. Returns negative, zero, or positive.

strcasecmp()

function strcasecmp(string $string1, string $string2): int

Binary safe case-insensitive string comparison. Returns negative, zero, or positive.

Parameters:

  • $string1 (string)
  • $string2 (string)

Returns: int

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

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