(Most frequently..) Corrected and added note

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I notice the syntaxis error in my previous message
array_slice(array_keys($hash_frequencywords,0,20)) must be array_slice(array_keys($hash_frequencywords),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?

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux