I am trying to sort a multidimensional array by multiple values but I keep getting the error:
Warning: array_multisort() [function.array-multisort]: Array sizes are inconsistent in -- on line 19
Line 19 is where I call the array_multisort function:
array_multisort($column1, $column2, $column3, $row);
I have been unable to replicate the issue in a test, so I haven't had much luck in solving the issue.
So basically I am saving a MySql table as a multidimensional associative array. Then I am trying to sort the rows by three different columns. I have checked and all of the arrays passed into the array_multisort() function are the same size. I checked both by manually looking through every row and by using sizeof().
Any ideas what could be causing this and/or what the solution is?