COLLATOR_GET_ERROR_MESSAGE(3) 1 COLLATOR_GET_ERROR_MESSAGE(3)
Collator::getErrorMessage - Get text for collator's last error code
Object oriented style
SYNOPSIS
public string Collator::getErrorMessage (void )
DESCRIPTION
Procedural style
string collator_get_error_message (Collator $coll)
Retrieves the message for the last error.
PARAMETERS
o $coll
-Collator object.
RETURN VALUES
Description of an error occurred in the last Collator API function call.
EXAMPLES
Example #1
collator_get_error_message(3) example
<?php
$coll = collator_create( 'lt' );
if( collator_compare( $coll, 'y', 'k' ) === false ) {
echo collator_get_error_message( $coll );
}
?>
SEE ALSO
collator_get_error_code(3).
PHP Documentation Group COLLATOR_GET_ERROR_MESSAGE(3)