Display the drop-down list

Collator::setStrength()

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

$bool $collator->setStrength (
    
?  // int $strength
);

// shows the strength value and name
$value $collator->getStrength();
$name pbx_get_class_constant_name($value"Collator"true);
?>
Result
$collator = 'Collator instance'
$bool = true
$value = 0
$name = 'Collator::FRENCH_COLLATION,Collator::PRIMARY,Collator::SORT_REGULAR'
Examples
#1 Collator::setStrength  (/* $locale = "en_US" */
 
Collator::PRIMARY)
See also
Collator::getStrength, collator_get_strength, pbx_get_class_constant_name