array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.pspell-check.php', 1 => 'pspell_check', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell 関数', ), 'prev' => array ( 0 => 'function.pspell-add-to-session.php', 1 => 'pspell_add_to_session', ), 'next' => array ( 0 => 'function.pspell-clear-session.php', 1 => 'pspell_clear_session', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/pspell/functions/pspell-check.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4 >= 4.0.2, PHP 5, PHP 7, PHP 8)
pspell_check — 単語をチェックする
バージョン | 説明 |
---|---|
8.1.0 |
引数 dictionary
は、PSpell\Dictionary
クラスのインスタンスを期待するようになりました。
これより前のバージョンでは、リソース を期待していました。
|
例1 pspell_check() の例
<?php
$pspell = pspell_new("en");
if (pspell_check($pspell, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>