JString::strcmp
UTF-8/LOCALE aware alternative to strcmp A case sensitive string comparison
Signature
public function strcmp(string
$str1,
[string
$str2 = false,
[mixed
$locale = false]] )
Parameters
-
$str1
- string 1 to compare
-
$str2
- string 2 to compare
-
$locale
- The locale used by strcoll or false to use classical comparison
Returns
- integer
- < 0 if str1 is less than str2; > 0 if str1 is greater than str2, and 0 if they are equal.