(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
提供字符串比较功能,支持适当的区分区域设置的排序顺序。
Collator
{
/* 方法 */
public __construct ( string $locale )
public asort ( array &$arr [, int $sort_flag ] ) : bool
public compare ( string $str1 , string $str2 ) : int
public static create ( string $locale ) : Collator
public getAttribute ( int $attr ) : int
public getErrorCode ( void ) : int
public getErrorMessage ( void ) : string
public getLocale ( int $type ) : string
public getSortKey ( string $str ) : string
public getStrength ( void ) : int
public setAttribute ( int $attr , int $val ) : bool
public setStrength ( int $strength ) : bool
public sortWithSortKeys ( array &$arr ) : bool
public sort ( array &$arr [, int $sort_flag ] ) : bool
}
