PHP: enchant_dict_quick_check - Manual in Deutsh
PHP: enchant_dict_quick_check - Manual in French
PHP: enchant_dict_quick_check - Manual in Polish

You Are At PHP: enchant_dict_quick_check - Manual Area


recent searches:
include functions , variable functions , post functions...




If you are new to PHP or just need to refresh your skills, this is the place to start. This series of tutorials will give you the basic knowledge you will need to create a simple PHP website.

PHP is a reflective programming language originally designed for producing dynamic web pages.[1] PHP is used mainly in server-side scripting, but can be used from a command line interface or in standalone graphical applications. Textual User Interfaces can also be created using ncurses.

PHP Manual
PrevNext

enchant_dict_quick_check

(PECL)

enchant_dict_quick_check -- Check the word is correctly spelled and provide suggestions

Description

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

If the word is correctly spelled return TRUE, otherwise return FALSE, if suggestions variable is provided, fill it with spelling alternatives.

Parameters

dict

Dictionary resource

word

The word to check

suggestions

If the word is not correctly spelled, this variable will contain an array of suggestions.

Return Values

Returns TRUE if the word is correctly spelled or FALSE

Examples

Example 1. A enchant_dict_quick_check() example

<?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

enchant_dict_check()
enchant_dict_suggest()

wizy do rosji, wiza do rosji, wizy do rosji, wiza do rosji, powiększanie ust, times square, aplikacje p2p, car audio
agencje pracy tymczasowej poznań cruel and unusual katalog mieszkania nad morzem tworzenie stron trójmiasto

Another Useful functions:


ref.enchant | function.enchant-dict-suggest | function.enchant-dict-store-replacement | function.enchant-dict-quick-check | function.enchant-dict-is-in-session | function.enchant-dict-get-error | function.enchant-dict-describe | function.enchant-dict-check | function.enchant-dict-add-to-session | function.enchant-dict-add-to-personal | function.enchant-broker-set-ordering | function.enchant-broker-request-pwl-dict | function.enchant-broker-request-dict | function.enchant-broker-list-dicts | function.enchant-broker-init | function.enchant-broker-get-error | function.enchant-broker-free | function.enchant-broker-free-dict | function.enchant-broker-dict-exists | function.enchant-broker-describe |


PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. If you are new to PHP and want to get some idea of how it works, try the introductory tutorial. After that, check out the online manual, and the example archive sites and some of the other resources available in the links section.