Collator::getSortKey
collator_get_sort_key
(Bir sürüm bilgisi bulunamadı; sadece SVN'de olabilir.)
Collator::getSortKey -- collator_get_sort_key — Get sorting key for a string
Açıklama
Nesne yönelimli kullanım
string
Collator::getSortKey
( string
$str
)Yordamsal kullanım
Return collation key for a string.
Dönen Değerler
Returns the collation key for the string. Collation keys can be compared directly instead of strings.
Uyarı
Bu işlev mantıksal FALSE
değeriyle dönebileceği gibi FALSE olarak değerlendirilebilecek mantıksal
olmayan bir değerle de dönebilir. Bu konuda daha fazla bilgi edinmek için
Mantıksal Değerler bölümüne
bakabilirsiniz. Bu işlevden dönen değeri sınamak için
===
işlecini kullanınız.
Örnekler
Örnek 1 collator_get_sort_key()example
<?php
$s1 = 'Hello';
$coll = collator_create( 'en_US' );
$res = collator_get_sort_key( $coll, $s1);
echo urlencode($res);
?>
Yukarıdaki örneğin çıktısı:
71%3F%3FE%01%09%01%8F%08%00
Ayrıca Bakınız
- collator_sort() - Belirtilen karşılaştırıcıyı kullanarak diziyi sıralar
- collator_sort_with_sort_keys() - Bir diziyi belirtilen karşılaştırıcıyı ve sıralama anahtarlarını kullanarak sıralar
There are no user contributed notes for this page.
