array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.pspell-config-ignore.php', 1 => 'pspell_config_ignore', ), 'up' => array ( 0 => 'ref.pspell.php', 1 => 'Fonctions Pspell', ), 'prev' => array ( 0 => 'function.pspell-config-dict-dir.php', 1 => 'pspell_config_dict_dir', ), 'next' => array ( 0 => 'function.pspell-config-mode.php', 1 => 'pspell_config_mode', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/pspell/functions/pspell-config-ignore.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_config_ignore — Ignore les mots de moins de N caractères
pspell_config_ignore() doit être utilisée avec une configuration avant d'appeler pspell_new_config(). Cette fonction permet au vérificateur d'ignorer les mots courts.
config
Une instance de PSpell\Config.
min_length
Les mots de moins de min_length
caractères seront ignorés.
Version | Description |
---|---|
8.1.0 |
Le paramètre config attend désormais une instance de
PSpell\Config ; auparavant, une ressource était expected.
|
Exemple #1 pspell_config_ignore()
<?php
$pspell_config = pspell_config_create("en");
pspell_config_ignore($pspell_config, 5);
$pspell = pspell_new_config($pspell_config);
pspell_check($pspell, "abcd"); // Ce mot ne provoquera pas d'erreur
?>