I have the following array:
$name_arr = array('raj','raj','ganesh','rahul','ganesh','mayur','raj','rahul');
I want to sort it like this:
$final_arr = array('raj','raj','raj','ganesh','ganesh','rahul','rahul','mayur');
How can I achieve it?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…