downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

FriBiDi> <enchant_dict_store_replacement
Last updated: Fri, 13 Nov 2009

view this page in

enchant_dict_suggest

(PECL enchant >= 0.1.0 )

enchant_dict_suggest修正候補となる値の一覧を返す

説明

array enchant_dict_suggest ( resource $dict , string $word )

パラメータ

dict

辞書リソース。

word

修正候補を調べる単語。

返り値

単語のスペルが間違っている場合に、修正候補の配列を返します。

例1 enchant_dict_suggest() の例

<?php
$tag 
'en_US';
$r enchant_broker_init();
if (
enchant_broker_dict_exists($r,$tag)) {
    
$d enchant_broker_request_dict($r$tag);

    
$wordcorrect enchant_dict_check($d"soong");
    if (!
$wordcorrect) {
        
$suggs enchant_dict_suggest($d"soong");
        echo 
"'soong' の修正候補:";
        
print_r($suggs);
    }
    
enchant_broker_free_dict($d);
}
enchant_broker_free($r);
?>

参考



add a note add a note User Contributed Notes
enchant_dict_suggest
There are no user contributed notes for this page.

FriBiDi> <enchant_dict_store_replacement
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites