嗨IAM工作,在陣列中的數據有:如何從嵌套的數組做的表格數據上出席報告
Array
(
[0] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:09:02
[eventID] => OUT
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
[1] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:09:12
[eventID] => IN
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
[2] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:11:31
[eventID] => OUT
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
[3] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:11:40
[eventID] => IN
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
[4] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:13:17
[eventID] => OUT
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
[5] => Array
(
[ActatekLog] => Array
(
[id] => 1
[timeentry] => 2011-02-16 00:13:21
[eventID] => IN
[terminalSN] => 00111DA08C8B
[jpegPhoto] =>
)
)
)
報告格式是:
Date In Time Out Time Work Time
2011-02-16
我需要在顯示幫助在時間和在同一天的一排排隊時間。
請幫
我只看到錄入時間。你能解釋一下我們在陣列中看到的更多嗎? – Prikkeldraad 2011-05-23 12:40:10
感謝您的回覆Prikkeldraad,我想以表格形式顯示數據,例如: DATE |在時間| OUT TIME |工作時間 在連續的同一日期的時間和時間 – Tanvier 2011-05-23 12:56:00
當我檢查你的數組我發現所有條目都在同一日期和2011-02-16,並且有三個IN和三個Out。那麼你如何期望你可以根據這些信息獲得一排?請發佈您期望的返回數據。 – Tareq 2011-05-23 17:15:05