var myNames= ["Chris","Kate","Steve"];
$.ajax
({
cache:false,
type: "POST",
url: "check.php?timestamp="+new Date().getTime(),
data: "myCars[]="+myCars,
success: function(msg)
{
...
}
});
with var_dump($myNames) in php page i see
array(1) { [0]=> string(16) "Chris,Kate,Steve" }
but i expect
array(3) {....}
why i see array(1) { [0]=> string(16) "Chris,Kate,Steve" }