COLLATOR_GET_ERROR_CODE(3) 1 COLLATOR_GET_ERROR_CODE(3)
Collator::getErrorCode - Get collator's last error code
Object oriented style
SYNOPSIS
public int Collator::getErrorCode (void )
DESCRIPTION
Procedural style
int collator_get_error_code (Collator $coll)
PARAMETERS
o $coll
-Collator object.
RETURN VALUES
Error code returned by the last Collator API function call.
EXAMPLES
Example #1
collator_get_error_code(3) example
<?php
$coll = collator_create( 'en_US' );
if( collator_get_attribute( $coll, Collator::FRENCH_COLLATION ) === false )
handle_error( collator_get_error_code() );
?>
SEE ALSO
collator_get_error_message(3).
PHP Documentation Group COLLATOR_GET_ERROR_CODE(3)