(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )
enchant_dict_store_replacement — 添加单词的更正
$dictionary, string $misspelled, string $correct): void使用 'cor' 为 'mis' 添加更正。请注意,您将 @mis 替换为 @cor,因此将来 @mis 的出现更有可能被替换为 @cor。因此它可能会将 @cor 在建议列表中上移。
dictionary由 enchant_broker_request_dict() 或 enchant_broker_request_pwl_dict() 返回的 Enchant 词典。
misspelled要修复的单词
correct正确的单词
| 版本 | 描述 |
|---|---|
| 8.0.0 |
dictionary 现在期望一个 EnchantDictionary 实例;以前,期望一个 资源。 |