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

search for in the

enchant_dict_store_replacement> <enchant_dict_is_in_session
[edit] Last updated: Fri, 24 Jun 2011

view this page in

enchant_dict_quick_check

(PHP 5 >= 5.3.0, PECL enchant:0.2.0-1.0.1)

enchant_dict_quick_checkبررسی کلمه از لحاظ املایی و فراهم کردن پیشنهادات

Description

bool enchant_dict_quick_check ( resource $dict , string $word [, array &$suggestions ] )

اگر کلمه از لحاظ املایی صحیح باشد TRUE بازگرداندن می‌شود در غیر این صورت FALSE بازگردانده خواهد شد اگر متغیر پیشنهاد فراهم شده باشد آن را با املاهای جایگزین پر نمایید.

Parameters

dict

منبع دیکشنری

word

کلمه برای بررسی

suggestions

اگر کلمه از لحاظ املایی درست نباشد این کلمه شامل آرایه پیشنهادات می‌شود.

Return Values

بازگرداندن TRUE اگر کلمه از لحاظ املایی صحیح باشد یا FALSE

Examples

Example #1 مثال enchant_dict_quick_check()

<?php
$tag 
'en_US';
$r enchant_broker_init();

if (
enchant_broker_dict_exists($r,$tag)) {
    
$d enchant_broker_request_dict($r$tag);
    
enchant_dict_quick_check($d'soong'$suggs);
    
print_r($suggs);
}
?>

The above example will output something similar to:

Array
(
    [0] => song
    [1] => snog
    [2] => soon
    [3] => Sang
    [4] => Sung
    [5] => sang
    [6] => sung
    [7] => sponge
    [8] => spongy
    [9] => snag
    [10] => snug
    [11] => sonic
    [12] => sing
    [13] => songs
    [14] => Son
    [15] => Sonja
    [16] => Synge
    [17] => son
    [18] => Sejong
    [19] => sarong
    [20] => sooner
    [21] => Sony
    [22] => sown
    [23] => scone
    [24] => song's
)

See Also



add a note add a note User Contributed Notes enchant_dict_quick_check - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites