我想要创建一个新的数组,其中包含原数组中重复的最大值,并将其他重复的值放入另一个数组。
谢谢!
$etudiant = array ('a'=>'2','b'=>'5', 'c'=>'6', 'd'=>'6', 'e'=>'2');
and i want this result
$MaxArray = array ('c'=>'6', 'd'=>'6');
$otherarray1 = array ('a'=>'2', 'e'=>'2');
谢谢!
$otherArray
应该更名为MinArray
吗?或者它实际上应该包含'b'=>5
吗? - Richard JP Le Guen