Here is some code that I need to modify to work with case insensitive comparison:
//Loop through each word
for($cntWord=0; $cntWord<Count($lineWords); $cntWord++){
//Process each word
if (array_key_exists($lineWords[$cntWord],$KWarray)){
$lineWords[$cntWord] = '<span style="'.$KWColor[$KWarray[$lineWords[$cntWord]]].'">'.$lineWords[$cntWord].'</span>';
}
}
What I need to do is modify the line starting with if( to fit what you have presented me with. Thanks, Jeremy
P.S. - The way the array looks is as follows:
$this->keyWords = array(
"End" => "0",
"Private" => "0",
"Sub" => "0");
This complicates things since the words being compared are actually array keys. Thanks, Jeremy