Skip to content
Advertisement

Displaying coordinates from mysql in a php array in specific way

What I’m trying to do is to get lat and lon columns from a MySQL table and put it in an array with this format “lat lon”. This is what I have done so far:

JavaScript

but it just gives me the array this way:

JavaScript

when I use print_r($points).

Any help would be appreciated.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement