Hello a am trying to create a function that will return me a value from the array if the value is bigger the a variable. the array is
[0] => Array ( [payment] => 1 [amount] => 100)
[1] => Array ( [payment] => 2 [amount] => 300 )
[2] => Array ( [payment] => 3 [amount] => 800 )
$variable = 350;
I need to get the payment value if is bigger then 300 amount . what I mean is to get back the value payment = 2. that is bigger then 300 and smaller the 800.
Thanks