View Full Version : interesting problem with array_count_values()

01-25-2008, 01:58 AM
please ignore, I discovered myerror

my bad


01-25-2008, 02:15 AM
Array ( [1] => bill [10] => campaign [2] => clinton [7] => clinton [4] => spotlight [3] => stealing [8] => talk [9] => wife )

try a:

echo count($first_array);

I suppose will be 12, :)

the values for [5], [6] are missing and probably you have [11] and [12] somewhere, :)

best regards

01-25-2008, 03:02 AM
I think that if you solve your problem 5 minutes after posting the issue, it would be more beneficial to edit the message with the solution as opposed to ripping everything down and saying "figured it out, never mind". Someone in the future may have the same issue, but rather than archiving the solution, Google will archive "never mind".

01-25-2008, 04:06 AM
I agree with you. And I usually do that.

This particular problem was a ridiculous oversight on my part that no one would have benefited from. I am tired, I make dumb mistakes when I am tired.

So I decided to delete it in the hopes that no one would reply to it and this thread would disappear.

So please stop replying to it. :)