enchant_dict_store_replacement 함수

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_dict_store_replacement — 단어 수정 추가


설명

enchant_dict_store_replacement(EnchantDictionary $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
올바른 단어

반환 값

성공하면 true를, 실패하면 false를 반환합니다..


변경 로그

버전 설명
8.0.0 dictionary은 이제 EnchantDictionary를 기대합니다. 이전에는 리소스가 필요했습니다.