Jump to content

Creating new array ()


zohab

Recommended Posts

Hi,

 

I have following information with me

 

1.

a.18.4687712,73.8830701

b.address1

c.images/refresh.gif

 

2.

a.18.4708117,73.9065883

b.address2

c.images/plus_inline.gif

 

3.

a.18.4857608,73.8962994

b.address3

c.images/plus.gif

 

 

Using above information I want to create array in following format.

 

 

{"markers": [
	{
		"point":new GLatLng(18.4687712,73.8830701), 
		"homeTeam":"address1",
		"markerImage":"images/refresh.gif",
	},
	{
		"point":new GLatLng(18.4708117,73.9065883),
		"homeTeam":"address2",
		"markerImage":"images/plus_inline.gif",
	},
	{
		"point":new GLatLng(18.4857608,73.8962994),
		"homeTeam":"address3",
		"markerImage":"images/plus.gif",
	},
] }

Link to comment
https://forums.phpfreaks.com/topic/178571-creating-new-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.