array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.pspell-check.php', 1 => 'pspell_check', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Pspell İşlevleri', ), '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' => 'en', '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 — Check a word
pspell_check() checks the spelling of a word.
Sürüm: | Açıklama |
---|---|
8.1.0 |
The dictionary parameter expects an
PSpell\Dictionary
instance now; previously, a resource was expected.
|
Örnek 1 pspell_check() Example
<?php
$pspell = pspell_new("en");
if (pspell_check($pspell, "testt")) {
echo "This is a valid spelling";
} else {
echo "Sorry, wrong spelling";
}
?>