Unix and Linux Discussions Tagged with correctly |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
2,087 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
1,843 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
2,239 |
Shell Programming and Scripting |
|
|
|
2 |
12,175 |
Solaris |
|
|
|
3 |
2,369 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,293 |
Shell Programming and Scripting |
|
|
|
2 |
2,457 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,191 |
UNIX for Advanced & Expert Users |
|
|
|
5 |
3,553 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
9,922 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
10,381 |
Shell Programming and Scripting |
|
|
|
2 |
19,048 |
UNIX for Advanced & Expert Users |
|
|
|
7 |
8,426 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
6,217 |
Programming |
|
|
|
1 |
5,288 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
3,947 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
8,168 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
4,145 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
7,893 |
Programming |
|
|
|
2 |
9,167 |
IP Networking |
|
|
|
12 |
6,504 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
8,143 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
9,340 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
3,813 |
Post Here to Contact Site Administrators and Moderators |
|
|
|
1 |
4,982 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
17,749 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
6,720 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
18,984 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,569 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,646 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,209 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
5,128 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
9,549 |
Cybersecurity |
|
|
|
2 |
2,966 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
9,678 |
UNIX for Dummies Questions & Answers |
ENCHANT_DICT_QUICK_CHECK(3) 1 ENCHANT_DICT_QUICK_CHECK(3)
enchant_dict_quick_check - Check the word is correctly spelled and provide suggestions
SYNOPSIS
bool enchant_dict_quick_check (resource $dict, string $word, [array &$suggestions])
DESCRIPTION
If the word is correctly spelled return TRUE, otherwise return FALSE, if suggestions variable is provided, fill it with spelling alterna-
tives.
PARAMETERS
o $dict
- Dictionary resource
o $word
- The word to check
o $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(3) 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(3), enchant_dict_suggest(3).
PHP Documentation Group ENCHANT_DICT_QUICK_CHECK(3)