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

search for in the

Collator> <国際化 関数
Last updated: Fri, 10 Oct 2008

view this page in

intl_is_failure

(No version information available, might be only in CVS)

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

説明

bool intl_is_failure ( integer $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.

Collator> <国際化 関数
Last updated: Fri, 10 Oct 2008
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites