php8.5
Home/ Manual/ intl / collator/ Collator::getStrength

Collator::getStrength

PHP function Edit on GitHub ✎

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)

Get current collation strength

Description

Oop

Collator::getStrength(): int

Procedural

collator_get_strength(Collator $object): int

Parameters

object

Collator object.

Return Values

Returns current collation strength,Falseforfailure.

Examples

collator_get_strength() example

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

See Also

Source: reference/intl/collator/get-strength.xml · from the official PHP manual (php/doc-en)