I am developing one application.In that i had two arrays with distance values and city names.I want to change the array values order into ascending based on distance values.This total process is worked for single distance values array by using sort descriptor.So my problem is how to change the city values array based on this distance values array order.The two arrays are arr1 with values 200,100,150 and arr2 with values ong,gdr,nlr
I am developing one application.In that i had two arrays with distance values and
Share
please use the array sort or follow the link:
http://php.net/manual/en/array.sorting.php
Hope this helpfull for you, if not then please share your code..