2024 年日本 PHP 研討會

enchant_dict_is_added

(PHP 8)

enchant_dict_is_added判斷「單字」是否存在於此拼寫工作階段中

說明

enchant_dict_is_added(EnchantDictionary $dictionary, 字串 $word): 布林值

判斷單字是否已存在於目前工作階段中。

參數

dictionary

enchant_broker_request_dict()enchant_broker_request_pwl_dict() 傳回的 Enchant 字典。

word

要查詢的單字

傳回值

如果單字存在則返回 true,否則返回 false

更新日誌

版本 說明
8.0.0 dictionary 現在需要一個 EnchantDictionary 實例;先前需要的是一個 資源

另請參閱

新增筆記

使用者貢獻的筆記

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