Two ways to sort an array keeping its key in php

The sort function in array sorts the array very well, but it doesnt maintain the keys so that it becomes really painful sometimes. There will be several scenarios were we need to keep the keys of the associative arrays. Luckily there are two functions in php which will help us to achieve this 1. uasort […]

Continue reading...