Hi all,
I wanted to remove some duplicate value if the key"customerid" and the key"carriername" values both are same , for example , 1169 and 1167 customerid[‘value’], carriername[‘value’] are same , so i wanted to remove 1167 from the array, may i know any function can compare two key values in array, if the same then remove it(only keep the first one)? Thanks.
1169 =>
array (size=5)
‘customerid’ => string ‘101789’
‘countryid’ => string ‘1012’
‘carriername’ => string ‘aaa’
‘shortname’ => string ‘abc’
‘code’ => string ‘111’
1168 =>
array (size=5)
‘customerid’ => string ‘812345’
‘countryid’ => string ‘2014’
‘carriername’ => string ‘aaa’
‘shortname’ => string ‘bcc’
‘code’ => string ‘122’
1167 =>
array (size=5)
‘customerid’ => string ‘101789’
‘countryid’ => string ‘8888’
‘carriername’ => string ‘aaa’
‘shortname’ => string ‘abc’
‘code’ => string ‘166’
1166 =>
array (size=5)
‘customerid’ => string ‘636212’
‘countryid’ => string ‘1012’
‘carriername’ => string ‘bbb’
‘shortname’ => string ‘abc’
‘code’ => string ‘111’