Hello all.
I've go the following:
global $countsearch;
while(list($k, $v) = each($word_count))
{
if($k == "$searchword")
{
$GLOBALS[countsearch] + $v = $GLOBALS[countsearch];
}
}
$countsearch doesn't return anything.
so, what i'm thinking is that it thinks that $v is "1", not 1, so it thinks it's not a number. Is there anyway to get around this and change $v to be a number?
btw: $k is a word and $v is how many times that word is used in a different string. When i do an echo $v; I get "1".
thanks for the help