In PHP, I have array like this:
Array
(
[0] => 09:26-DOWN
[1] => 09:26-UP
[2] => 09:26-UP
[3] => 09:26-UP
[4] => 09:26-UP
[5] => 09:26-UP
[6] => 09:26-UP
[7] => 09:26-UP
[8] => 09:26-DOWN
[9] => 09:26-UP
[10] => 09:26-UP
[11] => 09:26-UP
[12] => 09:26-UP
[13] => 09:26-UP
[14] => 09:26-UP
[15] => 09:26-UP
[16] => 09:26-UP
[17] => 09:26-UP
)
and I want to compare it with below array, only with the last characters (UP and DOWN):
Array
(
[0] => 09:31-DOWN
[1] => 09:31-UP
[2] => 09:31-UP
[3] => 09:31-UP
[4] => 09:31-UP
[5] => 09:31-UP
[6] => 09:31-UP
[7] => 09:31-UP
[8] => 09:31-UP
[9] => 09:31-UP
[10] => 09:31-UP
[11] => 09:31-UP
[12] => 09:31-UP
[13] => 09:31-UP
[14] => 09:31-UP
[15] => 09:31-UP
[16] => 09:31-UP
[17] => 09:31-UP
)
So the purpose is to check if it up or down between the specific time.