PHP Conference Japan 2024

intl_get_error_message

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

intl_get_error_message取得最後一個錯誤的描述

說明

intl_get_error_message(): 字串

取得最後一次呼叫國際化函式的錯誤訊息。

參數

此函式沒有參數。

回傳值

說明最後一次 API 函式呼叫中發生的錯誤。

範例

範例 #1 intl_get_error_message() 範例

<?php
if( Collator::getAvailableLocales() === false ) {
show_error( intl_get_error_message() );
}
?>

另請參閱

新增註記

使用者貢獻的註記

此頁面沒有使用者貢獻的註記。
To Top