The data is just a one dimensional array
The set is:
1234, 505, 2021, 1234.56
1234, 878, 2031, 1789.11,
1234, 878, 2041, 987.65
1234, 878, 2051, 4567.89
1234, 123, 2061, -58.78
1234, 878, 2061, -22.88
1234, 878, 2051, 567.99
It goes into arrays:
$emp[], $store[], $class[], $sales[]
The above would create the array $store[] as:
$store[0]=505
$store[1]=878
$store[2]=878
$store[3]=878
$store[4]=123
$store[5]=878
$store[6]=878
I want to calculate a variable to contain the value 878 which is the most frequent entry. The store number could be any value so sorting it by value does no good. The most frequent store could be 1 as easily as 878.
I went through all of the array functions on the PHP site and couldn't find anything to do this.
Brian