As an example, I'm going to use what I've been given quite simply, this Array
will be obtained with data coming from a query of BD
:
$S1 = [[0,100], [1,200], [2,700]];
$S2 = [[0,700], [1,300], [2,400]];
$Label = [[0,SPI], [1,MVA], [2,ITB]];
I need to create a single Array
with this information to get a JSON
return, but I do not understand how to do it and I am not able to associate Arrays
and the attempts I made were strange, the ending was not correct.