hi all, i'm difficult to get values array
condition:
1. if value only one get values
2. if value same then get value with index or key most high
3. if value same and key most high get all
example:
$data = Array(Array
("1" => "12306")
, Array
("0" => "12106")
,Array
("1" => "12770")
,Array
("3" => "12770")
,Array
("3" => "12306")
,Array
("3" => "12770")
);
the result:
Array
(
[1] => Array
(
[0] => 12106
)
[3] => Array
(
[3] => 12770
)
[4] => Array
(
[3] => 12306
)
[5] => Array
(
[3] => 12770
)
)
please help me :(