← All built-ins / strncasecmp()
strncasecmp()
strncasecmp(...$args): int
Parameters
| Name | Type | Description |
|---|---|---|
| $a | string | first string |
| $b | string | second string |
| $n | int | maximum bytes to compare |
Return value
Case-insensitive strncmp().
Example
echo strncasecmp("HOLYphp", "holyPHP", 4);0