php sort array with preference

luyboy978

New Member
I have array and contains 50 values ,example london,bluehit,green,lonpark,abc,aab,lonseei want to sort as per my preference , i give one argument ,example if i give arugment as lon then my array should form likelondon,lonpark,lonsee,aab,abc,blurhit,green,lonsee ,so in the above my array output is i gave parameter as lon , so started with my preference character array values and then alphabetical order ,Advise, For me the above question is too complex, bcoz i know asort,ksort, asc only , this is first time am meeting this sort of requirement,Thanks
 
Back
Top