I have to send array of integers and a string value with ajax to php. How to do this and how to get these values on php side?
// values to be send
var nums = [1,2,3,4];
var method = "delete";
$.ajax({
url: "ajaxcalls.php",
type: "GET",
dataType: "json",
data: ???,
contentType: 'application/json; charset=utf-8',
});
// ajaxcalls.php
<?php
???
?>