(Most frequently..) Corrected and added note

From: Date: Thu, 17 Jan 2008 19:54:34 +0000
Subject: (Most frequently..) Corrected and added note
Groups: php.db 
Request: Send a blank email to php-db+get-44529@lists.php.net to get a copy of this message
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?

« previous php.db (#44529) next »