strncasecmp
Binary safe case-insensitive string comparison of the first n characters
&reftitle.description;
intstrncasecmp
stringstring1
stringstring2
intlength
This function is similar to strcasecmp, with the
difference that you can specify the (upper limit of the) number of
characters from each string to be used in the comparison.
&reftitle.parameters;
string1
The first string.
string2
The second string.
length
The length of strings to be used in the comparison.
&reftitle.returnvalues;
Returns -1 if string1 is less than
string2; 1 if string1 is
greater than string2, and 0 if they are equal.
&reftitle.changelog;
&Version;
&Description;
&standard.changelog.binary-safe-string-comparison;
&reftitle.examples;
strncasecmp example
]]>
&reftitle.seealso;
strncmp
preg_match
substr_compare
strcasecmp
stristr
substr