Collator::getStrength

(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0)
Get current collation strength
public int Collator::getStrength ( void )

Object oriented style

Procedural style

int collator_get_strength ( Collator $coll )
Parameters:
coll

Collator object.

Returns:

Returns current collation strength, or boolean FALSE on error.

Examples:
collator_get_strength() example
1
2
3
4
<?php
$coll     = collator_create( 'en_US' );
$strength = collator_get_strength( $coll );
?>
See also:

Collator -

collator_set_strength() -

collator_get_attribute() -

doc_php
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.