Set the directory path for a given backend

enchant_broker_set_dict_path

(PHP 5 >= 5.3.1, PHP 7, PHP 8, PECL enchant >= 1.0.1)

enchant_broker_set_dict_pathSet the directory path for a given backend

警告

本函式已自 PHP 8.0.0 起被廢棄。強烈建議不要依賴本函式。

說明

enchant_broker_set_dict_path(EnchantBroker $broker, int $type, string $path): bool

Set the directory path for a given backend.

參數

broker

An Enchant broker returned by enchant_broker_init().

type

The type of the dictionaries, i.e. ENCHANT_MYSPELL or ENCHANT_ISPELL.

path

The path of the dictionary directory.

返回值

成功時返回 true, 或者在失敗時返回 false

更新日誌

版本 說明
8.0.0 broker expects an EnchantBroker instance now; previoulsy, a 資源(resource) was expected.

註釋

注意:

This function is only available if the extension has been compiled with Enchant v1.

參見

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *