pspell_suggest Suggest spellings of a word php函数


pspell_suggest

(PHP 4 >= 4.0.2, PHP 5)

pspell_suggestSuggest spellings of a word

说明

array pspell_suggest ( int $dictionary_link , string $word )

pspell_suggest() returns an array of possible spellings for the given word.

参数

dictionary_link

word

The tested word.

返回值

Returns an array of possible spellings.

范例

Example #1 pspell_suggest() example

<?php
$pspell_link 
pspell_new("en");

if (!
pspell_check($pspell_link"testt")) {
    
$suggestions pspell_suggest($pspell_link"testt");

    foreach (
$suggestions as $suggestion) {
        echo 
"Possible spelling: $suggestion<br />";
    }
}
?>



相关阅读:
putenv Sets the value of an environment variable
quoted_printable_decode Convert a quoted-printable string to an 8 bit string
quoted_printable_encode Convert a 8 bit string to a quoted-printable string
quotemeta Quote meta characters
rad2deg 将弧度数转换为相应的角度数
rand 产生一个随机整数
range 建立一个包含指定范围单元的数组
rawurldecode 对已编码的 URL 字符串进行解码
rawurlencode 按照 RFC 1738 对 URL 进行编码
readdir 从目录句柄中读取条目
readfile 输出一个文件
readgzfile Output a gz-file
readline Reads a line
readline_add_history Adds a line to the history
快速导航

Copyright © 2016 phpStudy |