Home > PHP > Function > intl > intl_get_error_code()

intl_get_error_code()

intl_get_error_code - Get the last error code

Syntax

int intl_get_error_code ()

Arguments

-

Description

Useful to handle errors occurred in static methods when there's no object to get error code from.

Version

PHP 5.3.0, PECL intl >= 1.0.0

Return value

Error code returned by the last API function call.