# I need a coding genious

**URL:** <https://forum.kirupa.com/t/i-need-a-coding-genious/297106>\
**Category:** flash\
**Created:** [September 25, 2009, 4:39pm UTC](https://forum.kirupa.com/t/i-need-a-coding-genious/297106 "2009-09-25T16:39:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigbstanley](https://avatars.discourse-cdn.com/v4/letter/b/977dab/32.png) [@bigbstanley](https://forum.kirupa.com/u/bigbstanley)\
**Post date:** [September 25, 2009, 4:39pm UTC](https://forum.kirupa.com/t/i-need-a-coding-genious/297106/1 "2009-09-25T16:39:42Z")

</div>

I need to add up similar items in multidimensional array for a scoring system. So basically, I have this:  
[AS]  
myArray[0] = array(“apple”,“bananas”);  
myArray[1] = array(“apple”,“oranges”,“kiwi”);  
myArray[2] = array(“bananas”);  
myArray[3] = array(“apple”,“cantaloop”,“kiwi”);  
[/AS]

and I need to have the outcome of the top 3 from greatest to smallest. In this case, it would be: apple(3), bananas(2), kiwi(2)

Any ideas on how to do this?
