Welcome Guest, Not a member yet? Register   Sign In
newbie - logging question - function_array-count-values
#1

[eluser]Unknown[/eluser]
I have a simple log function on my site and frequently see the 'function_array-count-values' as a requested segement. What is somebody looking for with this?
#2

[eluser]pickupman[/eluser]
[url="http://php.net/manual/en/function.array-count-values.php"]array_count_values[/url] would be used to combine/count how many times a value exists in an array. Say you have a log field in a result array. You could use to find how many times a field value exists in the table, and then asort() to sort the array. You would then have an ascending report of values.




Theme © iAndrew 2016 - Forum software by © MyBB