downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

マルチバイト文字列> <intl_get_error_message
Last updated: Fri, 13 Nov 2009

view this page in

intl_is_failure

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

intl_is_failure指定したエラーコードが失敗を表すかどうかを調べる

説明

bool intl_is_failure ( int $error_code )

パラメータ

error_code

intl_get_error_code()collator_get_error_code() が返す値。

返り値

そのコードが何らかの失敗を意味する場合に TRUE、 成功あるいは警告を意味する場合に FALSE を返します。

例1 intl_is_failure() example

<?php
function check$err_code )
{
    
var_exportintl_is_failure$err_code ) );
    echo 
"\n";
}
    
checkU_ZERO_ERROR );
checkU_USING_FALLBACK_WARNING );
checkU_ILLEGAL_ARGUMENT_ERROR );
?>

上の例の出力は、 たとえば以下のようになります。

false
false
true

参考



add a note add a note User Contributed Notes
intl_is_failure
There are no user contributed notes for this page.

マルチバイト文字列> <intl_get_error_message
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites