各位前辈好,小弟在做打卡异常判断的机制,
但对于如何处理这类资料还算菜B八,
想问要怎么利用循环+判断式处理这样的资料
(同一个人在同一天的同一个地方,要同时存在type=1,type=2,
同一天可以在不同地方,但要各自存在type=1,type=2)
打卡阵列如下
array
(
0 => array
(
'people' => '0101001'
'place' => '001'
'type' => '01'
'time' => '2016-11-01 08:59:34'
)
1 => array
(
'empno' => '0101001'
'place' => '001'
'type' => '02'
'time' => '2016-11-01 18:06:06'
)
2 => array
(
'empno' => '0101002'
'place' => '001'
'type' => '02'
'time' => '2016-08-01 18:03:00'
)
3 => array
(
'empno' => '0101001'
'place' => '002'
'type' => '01'
'time' => '2016-08-02 09:06:58'
)
4 => array
(
'empno' => '0101001'
'place' => '004'
'type' => '02'
'time' => '2016-08-02 19:52:50'
)
)