Identify Clash from Day and Time Array
<p>I have checked other SO questions but can't seem to find anything related to this - point me in the right direction if I missed something.</p>

<p>I currently have the following array containing a day and time (requested meeting time):</p>

<pre><code>Array (
    [0] =&gt;
        day =&gt; 'Thursday',
        start_time =&gt; '14:00',
        end_time =&gt; '15:00'
    [1] =&gt;
        day =&gt; 'Thursday',
        start_time =&gt; '16:30',
        end_time =&gt; '17:30'
)
</code></pre>

<p>The user is required to attend both of these times. What I am attempting to do is compare against another array containing a users current appointments and detect if there is a clash / time overlap issue</p>

<pre><code>Array (
    [0] =&gt;
        day =&gt; 'Monday',
        start_time =&gt; '09:00',
        end_time =&gt; '13:00'
    [1] =&gt;
        day =&gt; 'Wednesday',
        start_time =&gt; '10:45',
        end_time =&gt; '11:15'
    [2] =&gt;
        day =&gt; 'Thursday',
        start_time =&gt; '16:45',
        end_time =&gt; '17:45'
)
</code></pre>

<p>Using the above example I want to identify there is a clash with the second timeslot <code>[1] =&gt;</code> of the first array (proposed meetings) which clashes with the third timeslot <code>[2] =&gt;</code> of the second array (current meetings).</p>

<p>I have seen examples with timestamps and full dates, but not just days and start / end times.</p>
