COLLATOR_GET_ATTRIBUTE(3) 1 COLLATOR_GET_ATTRIBUTE(3)
Collator::getAttribute - Get collation attribute value
Object oriented style
SYNOPSIS
public int Collator::getAttribute (int $attr)
DESCRIPTION
Procedural style
int collator_get_attribute (Collator $coll, int $attr)
Get a value of an integer collator attribute.
PARAMETERS
o $coll
-Collator object.
o $attr
- Attribute to get value for.
RETURN VALUES
Attribute value, or boolean FALSE on error.
EXAMPLES
Example #1
collator_get_attribute(3) example
<?php
$coll = collator_create( 'en_CA' );
$val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION );
if( $val === false )
{
// Handle error.
}
?>
SEE ALSO
Collator constants, collator_set_attribute(3), collator_get_strength(3).
PHP Documentation Group COLLATOR_GET_ATTRIBUTE(3)