I have an array as below.
$denominations = array(100, 200, 500, 1000, 5000);
And dynamic minimum and maximum value,
$minimumValue = 150; $maximumValue = 700;
So my denomination array should eliminate 100 and 1000 above.
I know I can do it by for loop. But to simplify my coding is there any array function can do this?