PHP Classes

Error In Script

Recommend this page to a friend!

      Spell Corrector  >  All threads  >  Error In Script  >  (Un) Subscribe thread alerts  
Subject:Error In Script
Summary:Warning: array_key_exists()
Author:Bill GOrdon
Date:2011-03-15 04:07:03

  1. Error In Script   Reply   Report abuse  
Picture of Bill GOrdon Bill GOrdon - 2011-03-15 04:07:03
Warning: array_key_exists() expects parameter 2 to be array, boolean given in SpellCorrector.php on line 130

Line 130

private static function known(array $words) {
$known = array();
foreach($words as $w) {
if(array_key_exists($w,self::$NWORDS)) { <------fails
$known[] = $w;

return $known;

I have not modified the script at all and I have downloaded the big.txt

For more information send a message to info at phpclasses dot org.