Query: collator_sort_with_sort_keys
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
COLLATOR_SORT_WITH_SORT_KEYS(3) 1 COLLATOR_SORT_WITH_SORT_KEYS(3) Collator::sortWithSortKeys - Sort array using specified collator and sort keys Object oriented styleSYNOPSISpublic bool Collator::sortWithSortKeys (array &$arr)DESCRIPTIONProcedural style bool collator_sort_with_sort_keys (Collator $coll, array &$arr) Similar to collator_sort(3) but uses ICU sorting keys produced by ucol_getSortKey() to gain more speed on large arrays.PARAMETERSo $coll -Collator object. o $arr -Array of strings to sortRETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 collator_sort_with_sort_keys(3) example <?php $arr = array( 'Kopfe', 'Kypper', 'Kopfe' ); $coll = collator_create( 'sv' ); collator_sort_with_sort_keys( $coll, $arr ); var_export( $arr ); ?> The above example will output: array ( 0 => 'Kopfe', 1 => 'Kypper', 2 => 'Kopfe', )SEE ALSOCollator constants, collator_sort(3), collator_asort(3). PHP Documentation Group COLLATOR_SORT_WITH_SORT_KEYS(3)
Related Man Pages |
---|
parse_str(3) - php |
get_defined_vars(3) - php |
collator_compare(3) - php |
get_defined_functions(3) - php |
locale_parse(3) - php |
Similar Topics in the Unix Linux Community |
---|
AWK help please |
Using unix array in sql |
Integer array length |
Replace multiple strings of a file |
Need a Bash script for iterating thru an array and running a command |