array_count_values

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
1andyw
Forum Newbie
Posts: 2
Joined: Tue Aug 17, 2004 7:55 pm

array_count_values

Post by 1andyw »

Is there a way to use the function 'array_count_values' so that it will return variables with the count?
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Variables ?
Are you talking abt keys and values of the array ?
array_keys : array array_keys ( array input [, mixed search_value])
and
array_values : array array_values ( array input)
will return the keys and values of the array.
1andyw
Forum Newbie
Posts: 2
Joined: Tue Aug 17, 2004 7:55 pm

Post by 1andyw »

Thank you for your response. I was considering new code to improve the performance of a database. However, I believe I will stay with what I have now. It isn't pretty but it works, and it is simple enough to troubleshoot a few months down the road. Your interest is appreciated.

Andy
Post Reply