I have dates stored in an array but defining date ranges in a special format like this :
Array
(
[0] => Array
(
[0] => Array ///date start
(
[0] => 2017
[1] => 10 //month
[2] => 3 //day
)
[1] => Array //date end
(
[0] => 2017
[1] => 10 //month
[2] => 5 //day
)
)
[1] => Array
(
[0] => Array //date start
(
[0] => 2017
[1] => 11
[2] => 23
)
[1] => Array //date end
(
[0] => 2017
[1] => 11
[2] => 25
)
)
)
And I would need a function that can return if a specific string date exist in the array
2017-10-01. is_in_array ('2017-10-01').
But I don't understand how can I do with the foreach and the special array format of the date ranges.
[[2017, 10, 3], [2017, 10, 5]]and you wanted to check the date2017-10-04, should it find it or not?