Display the drop-down list

Collator::getSortKey()

« Collator::getLocale | Collator::getStrength »
<?php
$collator 
Collator::create(
    
 // string $locale
);

$string $collator->getSortKey (
    
  // string $str
);

// shows the result in hexadecimal
$hex bin2hex($string);
?>
Result
$collator = 'Collator instance'
$string = '5/==C    '
$hex = '352f3d3d430109018f08'
Examples
#1 Collator::getSortKey  (/* $locale = "en_US" */
 
"Hello")
See also
bin2hex, collator_sort, collator_sort_with_sort_keys