Sort a 2d array based on a column containing AM/PM-formatted time ranges – PHP
I have a 2D array named $props, the structure is as follows, $props = [ ['name' => 'Mathmatics', 'time' => '03:01:PM - 04:50:PM'], ['name' => 'History', 'time' => '11:30:AM - 01:30:PM'], ['name' => 'French', 'time' => '01:31:PM - 03:00:PM'], ];…