(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Set collation attribute
public bool Collator::setAttribute ( int $attr, int $val )
Object oriented style
Procedural style
Parameters:
coll
attr
Attribute.
val
Attribute value.
Returns:
Returns TRUE
on success or FALSE
on failure.
Examples:
collator_set_attribute() example
<?php $coll = collator_create( 'en_CA' ); $val = collator_get_attribute( $coll, Collator::NUMERIC_COLLATION ); if ($val === false) { // Handle error. } elseif ($val === Collator::ON) { // Do something useful. } ?>
See also:
Collator -
Please login to continue.