How to pass array between javascript and php mvc action
<p>I am new in php and want to pass the array from javascript to php. On jquery side it should be like this:</p>

<pre><code>var a= [];
a[0] = 'a';
a[1] = 'b';


$.ajax({
   type: "POST",
   data: {myarray:a},
   url: "index.php",
   success: function(msg){
     $('.answer').html(msg);
   }
});
</code></pre>

<p>which type on the server should I select?</p>
