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

search for in the

Collator::setStrength> <Collator::getStrength
Last updated: Fri, 27 Jun 2008

view this page in

Collator::setAttribute

collator_set_attribute

(No version information available, might be only in CVS)

collator_set_attribute — Set collation attribute

Описание

Object oriented style

bool Collator::setAttribute ( integer $attr , integer $val )

Procedural style

bool collator_set_attribute ( Collator $coll , integer $attr , integer $val )

Список параметров

coll

Collator object.

attr

Attribute.

val

Attribute value.

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Примеры

Пример #1 collator_set_attribute() example

<?php
$coll 
collator_create'en_CA' );
$val  collator_get_attribute$collCollator::NUMERIC_COLLATION );
if (
$val === false) {
    
// Handle error.
} elseif ($val === Collator::ON) {
    
// Do something useful.
}
?>



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

Collator::setStrength> <Collator::getStrength
Last updated: Fri, 27 Jun 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites