How to send a javascript array to PHP using Jquery Ajax.(Note: i will get a Jsondata as a response of the PHP).Also how to get the array variable in php.
In Javascript:
var userarray=values.toString().split(',');
var jsonData = $.ajax({
url: "http://someURL/server/test.php",
data:userarray,
dataType:"json",
async: false
}).responseText;
var timedata = new google.visualization.DataTable(jsonData);
In PHP:
$userdata=$_GET['userarray'];
is it correct?