CakeFest 2024: The Official CakePHP Conference

intl_error_name

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

intl_error_nameGet symbolic name for a given error code

Beschreibung

intl_error_name(int $errorCode): string

Return ICU error code name.

Parameter-Liste

errorCode

ICU error code.

Rückgabewerte

The returned string will be the same as the name of the error code constant.

Beispiele

Beispiel #1 intl_error_name() example

<?php
$coll
= collator_create( 'en_RU' );
$err_code = collator_get_error_code( $coll );

printf( "Symbolic name for %d is %s\n.", $err_code, intl_error_name( $err_code ) );
?>

Das oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:

Symbolic name for -128 is U_USING_FALLBACK_WARNING.

Siehe auch

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top