note 39838 rejected from function.pspell-check by didou

From: Date: Thu, 12 Feb 2004 15:08:25 +0000
Subject: note 39838 rejected from function.pspell-check by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-65053@lists.php.net to get a copy of this message
Note Submitter: jimmy@jimmysole.com ---- Hello I was wondering for pspell(); is there any way to run mulitple words for it to check for spelling? This is what I have: function cleanupSite($page) { global $page; if (file_exists($page)) { $pageclean = file_get_contents($page); $spell_load = pspell_new("en", "", "", "", (PSPELL_FAST|PSPELL_RUN_TOGETHER)); if (!pspell_check($spell_load, $pageclean)) { $suggested = pspell_suggest($spell_load, $pageclean); } foreach ($suggested as $suggest) { echo "Suggested spelling: $suggest<br>"; } } else { echo "Make sure file is valid"; } } Thanks Jimmy

« previous php.notes (#65053) next »