Collator::getErrorCode

collator_get_error_code

Get collator's last error code

&reftitle.description;

&style.oop;

public ``int``false```Collator::getErrorCode`

&style.procedural;

``int``false```collator_get_error_code` `Collator` `object`

&reftitle.parameters;

`object`

- `Collator` object.

&reftitle.returnvalues;

Error code returned by the last Collator API function call, &return.falseforfailure;.

&reftitle.examples;

### `collator_get_error_code` example

    <?php
    $coll = collator_create( 'en_US' );
    if( collator_get_attribute( $coll, Collator::FRENCH_COLLATION ) === false )
            handle_error( collator_get_error_code() );
    ?>

&reftitle.seealso;

- `collator_get_error_message`