Jump to content

Insert in a javascript array the elements of a php array


worldworld

Recommended Posts

Hi,

 

I just wanted a clean script to insert in a javascript array the elements of a php array. Any help will be thankful...

 

The syntax for a javascript Array literal is:

 

  var anArray = [

    'element 0',

    'element 1',

    'element 2',

    ...

  ];

 

And so on...

 

 

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.