Hello everyone.I have an array.It has dates: start date and end date.When adding to the array I want to check if there is such a range of dates in the array or if this range falls into one of the arrays.If it does, we throw an exception.Something I can’t figure out how to do it.Such a simple thing, but I can’t)) As I understand it, I need to use Interval for DateTimeImmutable

0 Answers 0