I have this array:
Array
(
[1] => Array
(
['s_date'] => 1/1/1989
['e_date'] => 6/30/1989
['rate'] => 7.92
)
[2] => Array
(
['s_date'] => 7/1/1989
['e_date'] => 12/31/1989
['rate'] => 8.18
)
[3] => Array
(
['s_date'] => 1/1/1990
['e_date'] => 6/30/1990
['rate'] => 7.14
)
So I want to search for rate between two given dates but I am not sure how to go about with that, i looked into array_search function but it didn't help.
function findRate($startDate, $endDate) {
// not sure here what needs to be done...
}
Thanks for the help