0
As an example, I’m going to use what I was given very simply, this Array
will be obtained from data from a query of a 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 Array
unique with this information to achieve a return JSON
valid, but I do not understand how to do and I am unable to associate the Arrays
and the attempts I made became strange, the ending was not correct.
Are you sure this information is correct? I don’t think this statement of these arrays is correct (I may be wrong, it’s been a while since I didn’t use php). I imagine it would look something like this: $S1 = [[0,100], [1,200], [2,700]]; ???
– Israel Merljak
I’m experiencing syntax error in your array statements.
– Christian Luã Lemos