I have an array:
$array = array(
'john' => 2,
'adam' => 3,
'ben' => 10,
'tim' => 1
);
I have tried all sorts of functions with PHP to achieve this array structure:
$array = array(
'tim' => 1,
'john' => 2,
'adam' => 3,
'ben' => 10
);
Where its ordered by the array values and the key/values maintained. Any ideas?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…