How can i get best way to get cheapest price from this php code ?
Array
(
[SKU0001901] => Array
(
[0] => 300000
[1] => 50000
)
[SKU0001902] => Array
(
[0] => 400
[1] => 2000000
[2] => 500
)
[SKU0001903] => Array
(
[0] => 100000
[1] => 500000
)
)
Expect : SKU0001901 is 50000 , SKU0001902 cheapest is 400, etc.
SOLVED
There many ways to answer my question. In my case, i use array_map.
$o = array_map('min', $array);
In the future, i want to make a research which method to make it faster, especially in big array data.