I'm posting Javascript array cellValues
using following code:
$.post('test.php', {cellvalues: celValues});
test.php:
<?php
$i=0;
$arr= array();
foreach($_POST['celValues'] as $val)
{
$arr[i]=$val;
echo $arr[i];
$i++;
}
The PHP code is not working. So how can I assign the JS array into a PHP array?