[Solved] Usort multidimensional array in PHP isn’t working for me
In your example you are using the function strcmp to compare the integers, but this function is made to compare binary safe strings. You need to use another function or just an operator like >. So, your array has been sorted correctly by PHP. solved Usort multidimensional array in PHP isn’t working for me