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 styleSYNOPSISpublic bool Collator::setAttribute (int $attr, int $val)DESCRIPTIONProcedural style bool collator_set_attribute (Collator $coll, int $attr, int $val)PARAMETERSo $coll -Collator object. o $attr -Attribute. o $val - Attribute value.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #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 ALSOCollator constants, collator_get_attribute(3), collator_set_strength(3). PHP Documentation Group COLLATOR_SET_ATTRIBUTE(3)
Related Man Pages |
---|
collator(3) - php |
collator_asort(3) - php |
intl_is_failure(3) - php |
tidy_get_opt_doc(3) - php |
collator.__construct(3) - php |
Similar Topics in the Unix Linux Community |
---|
UNIX.COM 2017 Year End Summary |
New Code Tags (Syntax Highlighting) |
Status of UNIX.COM Forum Transformation |
Please Welcome Nicki Paul to the Moderator Team! |