array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.intl-get-error-code.php', 1 => 'intl_get_error_code', ), 'up' => array ( 0 => 'ref.intl.php', 1 => '国際化 関数', ), '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' => 'ja', 'path' => 'reference/intl/functions/intl-get-error-code.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL intl >= 1.0.0)
intl_get_error_code — 直近のエラーコードを取得する
この関数にはパラメータはありません。
直近の API 関数のコールが返すエラーコードを返します。
例1 intl_get_error_code() の例
<?php
$coll = collator_create( '<bad_param>' );
if( !$coll ) {
handle_error( intl_get_error_code() );
}
?>