array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.intl-get-error-code.php', 1 => 'intl_get_error_code', 2 => 'Get the last error code', ), 'up' => array ( 0 => 'ref.intl.php', 1 => 'Функції intl', ), 'prev' => array ( 0 => 'function.intl-error-name.php', 1 => 'intl_error_name', ), 'next' => array ( 0 => 'function.intl-get-error-message.php', 1 => 'intl_get_error_message', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/intl/functions/intl-get-error-code.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
intl_get_error_code — Get the last error code
Useful to handle errors occurred in static methods when there's no object to get error code from.
У цієї функції немає параметрів.
Error code returned by the last API function call.
Приклад #1 intl_get_error_code() example
<?php
$coll = collator_create( '<bad_param>' );
if( !$coll ) {
handle_error( intl_get_error_code() );
}
?>