I combined two arrays and passed them through JSON, as shown below:
$result = array_merge($json, $json1);
echo json_encode($result);
Now, to retrieve the data, I am using the following code:
$.getJSON('./tarefasaad52', function (data) {
}
However, I now need to separate the arrays again.
Data received:
0: (3) ["T", 57, 22] 1: (3) ["T", 50, 23] 2: (3) ["M", 17, 22] 3: (3) ["M", 50, 23] 4: (3) ["T", 42, 23]