downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Collator::sort> <Collator::setStrength
[edit] Last updated: Fri, 23 Mar 2012

view this page in

Collator::sortWithSortKeys

collator_sort_with_sort_keys

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

Collator::sortWithSortKeys -- collator_sort_with_sort_keysBir diziyi belirtilen karşılaştırıcıyı ve sıralama anahtarlarını kullanarak sıralar

Açıklama

Nesne yönelimli kullanım

bool Collator::sortWithSortKeys ( array &$dizi )

Yordamsal kullanım

bool collator_sort_with_sort_keys ( Collator $karşılaştırıcı , array &$dizi )

collator_sort() işlevine benzer, fakat büyük dizilerde daha fazla hız kazanmak için ucol_getSortKey() tarafından üretilen ICU sıralama anahtarını kullanır.

Değiştirgeler

karşılaştırıcı

Collator nesnesi.

dizi

Sıralanacak dizge dizisi.

Dönen Değerler

Başarı durumunda TRUE, başarısızlık durumunda FALSE döner.

Örnekler

Örnek 1 - collator_sort_with_sort_keys() örneği

<?php
$arr  
= array( 'Kuytu''Kuğu''Kuş' );
$coll collator_create'tr' );

collator_sort_with_sort_keys$coll$arr );
var_export$arr );
?>

Yukarıdaki örneğin çıktısı:

array (
  0 => 'Kuğu',
  1 => 'Kuş',
  2 => 'Kuytu',
)

Ayrıca Bakınız



add a note add a note User Contributed Notes Collator::sortWithSortKeys
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites