I have this code :
<?php
$result = array ( array ("split" => "2", "combo" => "4,3"),
array ("split" => "2", "combo" => "6,1"),
array ("split" => "3", "combo" => "2,1"),
array ("split" => "4", "combo" => "1,1,1,1"));
$min_x = min ( array_column( $result, 'split' ) );
print_r($min_x);
?>
this will give me 2 as result and I need to create some function to get the combo value of 2, how to get both array value of 2 using native PHP function (is there any?) like this :
array ( array ("split" => "2", "combo" => "4,3"),
array ("split" => "2", "combo" => "6,1"));