downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<Collator::getStrengthCollator::setStrength>
Last updated: Thu, 26 Jun 2008

Collator::setAttribute

collator_set_attribute

(No version information available, might be only in CVS)

collator_set_attribute — Set collation attribute

Description

Object oriented style

bool Collator::setAttribute ( integer $attr , integer $val )

Procedural style

bool collator_set_attribute ( Collator $coll , integer $attr , integer $val )

Parameters

coll

Collator object.

attr

Attribute.

val

Attribute value.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 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.
}
?>



add a noteadd a note User Contributed Notes
Set collation attribute
There are no user contributed notes for this page.




<Collator::getStrengthCollator::setStrength>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs