For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > January 2008 > (Most frequently..) Corrected and added note









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author (Most frequently..) Corrected and added note
buzon@alejandro.ceballos.info

2008-01-17, 7:01 pm

I notice the syntaxis error in my previous message
array_slice(array_keys($hash_frequencywo
rds,0,20)) must be
array_slice(array_keys($hash_frequencywo
rds),0,20);

But the error continues generating me an "array enter" to my first
array. The error occurs in the following piece of code:

for ($i=0; $i<count($arr_frequencywords); $i++)
{
$str_thisword = $arr_frequencywords[$i];
echo "$i:$str_thisword ";
$hash_frequencywords[$str_thisword]++;
}

Sends me the output:

4:Array
Warning: Illegal offset type in
/home/mipyme/public_html/jpanel/index.php on line 199
5:Array
Warning: Illegal offset type in
/home/mipyme/public_html/jpanel/index.php on line 199
6:Array
Warning: Illegal offset type in
/home/mipyme/public_html/jpanel/index.php on line 199

Where it comes that extra array reference even I use elements append?
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com