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

<Collator::__constructCollator::getAttribute>
Last updated: Thu, 26 Jun 2008

Collator::create

collator_create

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

collator_create — Create a collator

Description

Object oriented style

static Collator Collator::create ( string $locale )

Procedural style

Collator collator_create ( string $locale )

The strings will be compared using the options already specified.

Parameters

locale

The locale containing the required collation rules. Special values for locales can be passed in - if null is passed for the locale, the default locale collation rules will be used. If empty string ("") or "root" are passed, UCA rules will be used.

Return Values

Return new instance of Collator object, or NULL on error.

Examples

Example #1 collator_create() example

<?php
$coll
= collator_create( 'en_US' );

if( !isset(
$coll ) ) {
  
printf( "Collator creation failed: %s\n", intl_get_error_message() );
   exit(
1 );
}
?>



add a noteadd a note User Contributed Notes
Create a collator
There are no user contributed notes for this page.




<Collator::__constructCollator::getAttribute>
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