public static Unicode::strcasecmp($str1, $str2)
Compares UTF-8-encoded strings in a binary safe case-insensitive manner.
Parameters
string $str1: The first string.
string $str2: The second string.
Return value
int Returns < 0 if $str1 is less than $str2; > 0 if $str1 is greater than $str2, and 0 if they are equal.
File
- core/lib/Drupal/Component/Utility/Unicode.php, line 583
Class
- Unicode
- Provides Unicode-related conversions and operations.
Namespace
Drupal\Component\Utility
Code
1 2 3 | public static function strcasecmp ( $str1 , $str2 ) { return strcmp ( static :: strtoupper ( $str1 ), static :: strtoupper ( $str2 )); } |
Please login to continue.