If I have the following array:
$myArray(jim,ed,gary,jim,jim,fred,gary,alice,mary, alice,alice);
What's a simple way to get a total on each unique value, such as:
jim=3
ed=1
gary=2
alice=3
mary=1
fred=1
thanks
Must read Review for Serious PHP Developers
NuSphere PhpED 5.0
: The Staff of php-editors.com recently spent a few days working with NuSphere
PhpED 5.0
(a popular PHP IDE) and
NuCoder 1.4
(a PHP Encoding Utility), read up on all the details.