I try to explain myself:
I have 2 arrays, one of them is it:
Array(
[0] => 01/09/2014
[1] => 02/09/2014
[2] => 03/09/2014
[3] => 04/09/2014
[4] => 05/09/2014
[5] => 06/09/2014
[6] => 07/09/2014
[7] => 08/09/2014
[8] => 09/09/2014
[9] => 10/09/2014
[10] => 11/09/2014
[11] => 12/09/2014
[12] => 13/09/2014
[13] => 14/09/2014
[14] => 15/09/2014
[15] => 16/09/2014
[16] => 17/09/2014
[17] => 18/09/2014
[18] => 19/09/2014
[19] => 20/09/2014
[20] => 21/09/2014
[21] => 22/09/2014
[22] => 23/09/2014
[23] => 24/09/2014
[24] => 25/09/2014
[25] => 26/09/2014
[26] => 27/09/2014
[27] => 28/09/2014
[28] => 29/09/2014
[29] => 30/09/2014
)
And the other is:
Array(
[12/09/2014] => Array
(
[0] => 17:41:54
[1] => 17:42:21
[2] => 17:42:47
[3] => 17:43:21
[4] => 17:47:24
[5] => 17:47:40
[6] => 17:48:09
[7] => 17:48:27
[8] => 18:09:21
[9] => 18:55:22
[10] => 20:22:02
[11] => 23:36:22
[12] => 23:42:39
[13] => 17:59:25
)
[15/09/2014] => Array
(
[0] => 13:02:29
)
[23/09/2014] => Array
(
[0] => 9:55:56
[1] => 10:25:01
)
[26/09/2014] => Array
(
[0] => 9:09:24
[1] => 9:15:30
[2] => 10:39:49
[3] => 19:53:40
)
[29/09/2014] => Array
(
[0] => 8:28:46
)
[30/09/2014] => Array
(
[0] => 8:16:54
[1] => 10:06:02
[2] => 10:11:32
[3] => 14:16:07
[4] => 16:25:02
)
[01/10/2014] => Array
(
[0] => 8:28:23
[1] => 9:12:22
[2] => 9:15:38
[3] => 10:25:23
)
I need to build other when if the second array index matches with some first array elements, put the subelements (times), if not, put "There aren't results" o something like this.
Understand?
Example:
Array
(
[01/09/2014] => Array
(
[0] => "There aren't results"
)
[02/09/2014] => Array
(
[0] => "There aren't results"
)
[03/09/2014] => Array
(
[0] => "There aren't results"
)
.
.
.
[12/09/2014] => Array
(
[0] => 17:41:54
[1] => 17:42:21
[2] => 17:42:47
[3] => 17:43:21
[4] => 17:47:24
[5] => 17:47:40
[6] => 17:48:09
[7] => 17:48:27
[8] => 18:09:21
[9] => 18:55:22
[10] => 20:22:02
[11] => 23:36:22
[12] => 23:42:39
[13] => 17:59:25
)
[13/09/2014] => Array
(
[0] => "There aren't results"
)