Uncategorized

PHP array list find min max of other value by duplicate value

<?php $arrayList = array(); $arrayList[0][‘index’] = ‘aaaaa’; $arrayList[0][‘id’] = 1; $arrayList[0][‘val’] = 5; $arrayList[1][‘index’] = ‘aaaaa’; $arrayList[1][‘id’] = 2; $arrayList[1][‘val’] = 4; $arrayList[2][‘index’] = ‘aaaaa’; $arrayList[2][‘id’] = 3; $arrayList[2][‘val’] = 1; $arrayList[3][‘index’] = ‘bbb’; $arrayList[3][‘id’] = 4; $arrayList[3][‘val’] = 22; $arrayList[4][‘index’] = ‘bbb’; $arrayList[4][‘id’] = 5; $arrayList[4][‘val’] = 43; $arrayList[5][‘index’] = ‘bbb’; $arrayList[5][‘id’] = 6;… Continue reading PHP array list find min max of other value by duplicate value