The strcoll() function compares two strings.
PHP strcoll() Function has the following syntax.
strcoll(string1,string2)
Parameter | IsRequired | Description |
---|---|---|
string1 | Required. | First string to compare |
string2 | Required. | Second string to compare |
This function returns:
The comparison of the strings may vary depending on the locale settings (A<a or A>a).
The strcoll() is case-sensitive but not binary-safe.