Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Dec 2006
    Posts
    417
    Thanks
    168
    Thanked 1 Time in 1 Post

    interesting problem with array_count_values()

    please ignore, I discovered myerror

    my bad

    sorry
    Last edited by Bobafart; 01-25-2008 at 01:09 AM. Reason: ignore

  • #2
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by Bobafart View Post
    Array ( [1] => bill [10] => campaign [2] => clinton [7] => clinton [4] => spotlight [3] => stealing [8] => talk [9] => wife )
    try a:

    PHP Code:
    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

  • #3
    Senior Coder kbluhm's Avatar
    Join Date
    Apr 2007
    Location
    Philadelphia, PA, USA
    Posts
    1,509
    Thanks
    3
    Thanked 258 Times in 254 Posts
    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".

  • #4
    Regular Coder
    Join Date
    Dec 2006
    Posts
    417
    Thanks
    168
    Thanked 1 Time in 1 Post
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •