I am new in php and want to pass the array from javascript to php. On jquery side it should be like this:
var a= [];
a[0] = 'a';
a[1] = 'b';
$.ajax({
type: "POST",
data: {myarray:a},
url: "index.php",
success: function(msg){
$('.answer').html(msg);
}
});
which type on the server should I select?