php man page for collator_set_attribute

Query: collator_set_attribute

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

COLLATOR_SET_ATTRIBUTE(3)						 1						 COLLATOR_SET_ATTRIBUTE(3)

Collator::setAttribute - Set collation attribute

	Object oriented style

SYNOPSIS
public bool Collator::setAttribute (int $attr, int $val)
DESCRIPTION
Procedural style bool collator_set_attribute (Collator $coll, int $attr, int $val)
PARAMETERS
o $coll -Collator object. o $attr -Attribute. o $val - Attribute value.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1 collator_set_attribute(3) 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 constants, collator_get_attribute(3), collator_set_strength(3). PHP Documentation Group COLLATOR_SET_ATTRIBUTE(3)
Related Man Pages
collator_sort_with_sort_keys(3) - php
collator_asort(3) - php
numfmt_set_attribute(3) - php
pdo.getattribute(3) - php
tidy.getoptdoc(3) - php
Similar Topics in the Unix Linux Community
Forum Video Tutorial: How to Use Code Tags
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
Please Welcome Ravinder Singh to the Moderation Team
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun