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

警告

本函數(shù)已自 PHP 8.0.0 起被廢棄。強(qiáng)烈建議不要依賴本函數(shù)。

說明

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

Set the directory path for a given backend.

參數(shù)

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.

參見