Tim's BandwagonHitch your wagon to a chickenarray_mode- May 3, 2007 If you&8217;ve ever needed to get calculate a mode value in php, you&8217;ll notice that there isn&8217;t a native function to do so. I couldn&8217;t get the function in Pear&8217;s Math_Statistics to work with non-numeric values, so here&8217;s a function that does. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 &60;php &160; Calculates the frequently occuring value(s) in an array. ..http://www.twisty.com/bandwagon/archives/2007/05/03/104903 |