There is an array:
Array ( [0] => Array ( [product_id] => 27861642 [percent] => 100 [price] => 1437.132 [relateds] => 044650C020 ) [1] => Array ( [product_id] => 27818936 [percent] => 100 [price] => 1521.984 [relateds] => 0446560280 ) ); For one array traversal, you need to make a sample (output 1 array), in which the value of the element [relateds] = 0446560280, as well as the element [price] has the smallest value.