2
In my database I have
id , coluna1, coluna2
1 , 38.951399 , -76.958463
2 , 38.942855, -76.959149
I’m using php
I need to transform this information into a Javascript array with the following structure
new Array([38.951399, -76.958463], [38.942855, -76.959149]);
The communication between Javascript in Php is ok, in js I can print in the strings console, what I can’t and do this conversion of these strings to an Array in JS.
neoprofit am trbalhando well like you posted...sorry but I’m inciante, I am jquery to call php so I have and can go through an array like you posted... the question is to pass this result as parameter to another function that is waiting for the following value. new Array([38.951399, -76.958463], [38.942855, -76.959149]); In php I’m returning an array array...
– Tiago
I couldn’t understand the scenario :/ How about improving the question?
– neoprofit
neoprofit confused me your example worked thank you!
– Tiago