(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Get collation attribute value
public int Collator::getAttribute ( int $attr )
Object oriented style
Procedural style
Get a value of an integer collator attribute.
Parameters:
coll
Collator object.
attr
Attribute to get value for.
Returns:
Attribute value, or boolean FALSE
on error.
Examples:
collator_get_attribute() example
<?php $coll = collator_create( 'en_CA' ); $val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION ); if( $val === false ) { // Handle error. } ?>
See also:
Collator -
Please login to continue.