привет,
Там мой код ajax
//If chkArray is not empty show the <div> and create the list
if(chkArray.length !== 0) {
$.ajax({
method: 'POST',
url : 'http://localhost/shop/ext/ajax/products_compare/test.php',
// data : JSON.stringify({product_id: chkArray})
data: {product_id: JSON.stringify(chkArray)},
});
}
У меня есть такой результат:
array(1) {
["{"product_id":"]=>
array(1) {
[""10","9""]=>
string(0) ""
}
}
Как извлечь этот код в php?