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

search for in the

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

view this page in

Collator::setAttribute

collator_set_attribute

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

Collator::setAttribute -- collator_set_attributeKarşılaştırma özniteliği tanımlar

Açıklama

Nesne yönelimli kullanım

bool Collator::setAttribute ( int $öznitelik , int $değer )

Yordamsal kullanım

bool collator_set_attribute ( Collator $karşılaştırıcı , int $öznitelik , int $değer )

Değiştirgeler

karşılaştırıcı

Collator nesnesi.

öznitelik

Öznitelik.

değer

Özniteliğe atanacak değer.

Dönen Değerler

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

Örnekler

Örnek 1 - collator_set_attribute() örneği

<?php
$coll 
collator_create'en_CA' );
$val  collator_get_attribute$collCollator::NUMERIC_COLLATION );
if (
$val === false) {
    
// Hata işleme.
} elseif ($val === Collator::ON) {
    
// Bazı işlemler.
}
?>

Ayrıca Bakınız



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

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