Hello
I am dealing with a problem and having a hard time solving it. So need your help!
Imagine I have a comment section in my website, where there are two types of role “member” and “staff”. Both roles can post comment. I want to get the datetime of the [B]first[B]opposite
Note: The following array is in reverse chronological order. Meaning, the latest post appears on top. Also, to make it less confusing, I have used unique datetime for each record below.
[CODE]
Array
(
[0] => Array
(
[role] => member
[username] => aaa
[datetime] => 1433566756
)
[1] => Array
(
[role] => member
[username] => aaa
[datetime] => 1433566755
)
[2] => Array
(
[role] => staff
[username] => ccc
[datetime] => 1433566754
)
[3] => Array
(
[role] => staff
[username] => ccc
[datetime] => 1433566753
)
[4] => Array
(
[role] => staff
[username] => ccc
[datetime] => 1433566752
)
[5] => Array
(
[role] => member
[username] => aaa
[datetime] => 1433566751
)
)
please help…
thanks in advance