enchant_broker_set_dict_path
(PHP 5 >= 5.3.1, PHP 7, PHP 8, PECL enchant >= 1.0.1)
enchant_broker_set_dict_path — Set the directory path for a given backend
警告
本函式已自 PHP 8.0.0 起被廢棄。強烈建議不要依賴本函式。
說明
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_MYSPELLorENCHANT_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.