I have a php array as follows :
Array
(
[0] => Array
(
[EmployeeAttendance] => Array
(
[attendance_id] => 1
[arrival_datetime] => 2016-11-01 03:31:00
[status] => Present
)
)
[1] => Array
(
[EmployeeAttendance] => Array
(
[attendance_id] => 2
[arrival_datetime] => 2016-11-03 06:31:00
[status] => Present
)
)
[2] => Array
(
[EmployeeAttendance] => Array
(
[attendance_id] => 3
[arrival_datetime] => 2016-11-06 07:31:00
[status] => Present
)
)
[3] => Array
(
[EmployeeAttendance] => Array
(
[attendance_id] => 4
[arrival_datetime] => 2016-11-08 19:31:00
[status] => Present
)
)
[4] => Array
(
[EmployeeAttendance] => Array
(
[attendance_id] =>5
[arrival_datetime] => 2016-11-10 08:00:00
[status] => Present
)
)
)
Here in this array we can see the attendance details from date '2016-11-01' to '2016-11-10' and some dates are missing here like '2016-11-02','2016-11-04','2016-11-05','2016-11-07' and '2016-11-09' . Now I want to check the missing dates from the date between '2016-11-01' to '2016-11-10' and insert those missing dates into the array with status = "absent". Give some suggestion please.