私はPHPにこの配列を持っています。ここには、名前とランクを含む配列の配列があります。ランクを順番に並べてほしい。つまり、1から16まで。
$info = array( array( "Name"=> "Ayush Mishra", "Rank"=> "1"),
array( "Name"=> "Ayush Mishra", "Rank"=> "16"),
array( "Name"=> "Ayush Mishra", "Rank"=> "14"),
array( "Name"=> "Ayush Mishra", "Rank"=> "15"),
array( "Name"=> "Ayush Mishra", "Rank"=> "13"),
array( "Name"=> "Ayush Mishra", "Rank"=> "12"),
array( "Name"=> "Ayush Mishra", "Rank"=> "11"),
array( "Name"=> "Ayush Mishra", "Rank"=> "10"),
array( "Name"=> "Ayush Mishra", "Rank"=> "8"),
array( "Name"=> "Ayush Mishra", "Rank"=> "9"),
array( "Name"=> "Ayush Mishra", "Rank"=> "7"),
array( "Name"=> "Ayush Mishra", "Rank"=> "5"),
array( "Name"=> "Ayush Mishra", "Rank"=> "4"),
array( "Name"=> "Ayush Mishra", "Rank"=> "3"),
array( "Name"=> "Ayush Mishra", "Rank"=> "6"),
array( "Name"=> "Ayush Mishra", "Rank"=> "2"), );
上記の配列からこの配列が欲しいです。これは私が取得したい結果の配列です。
$result = array(
array( "Name"=> "Ayush Mishra", "Rank"=> "1"),
array( "Name"=> "Teaser", "Rank"=> "2"),
array( "Name"=> "Pussel", "Rank"=> "3"),
array( "Name"=> "Condomso", "Rank"=> "4"),
array( "Name"=> "Branite", "Rank"=> "5"),
array( "Name"=> "Biknol", "Rank"=> "6"),
array( "Name"=> "Fuckita", "Rank"=> "7"),
array( "Name"=> "James", "Rank"=> "8"),
array( "Name"=> "Babita", "Rank"=> "9"),
array( "Name"=> "Mathse", "Rank"=> "10"),
array( "Name"=> "rohan", "Rank"=> "11"),
array( "Name"=> "Alex", "Rank"=> "12"),
array( "Name"=> "Peter", "Rank"=> "13"),
array( "Name"=> "Gabbar Singh", "Rank"=> "14"),
array( "Name"=> "raghav", "Rank"=> "15"),
array( "Name"=> "Shivam", "Rank"=> "16"),
);
$infoの結果として上記の配列が必要です。$infoを$resultに変更するためのコードを教えてください。