title: How to pass an multidimensional JS array with Post Ajax
body: <p>i have a problem with JS multidimensional array and ajax, im tried many things and decide to make a join of the array to then, make a explode on php and get the array.</p>
  
  <p>I decide that after look that if a send the "park" array just like that:</p>
  
  <pre><code>    $.post( VIEW+THEME+"ajax/insertPark.php", {
              p:Base64.encode(park),
      }
  </code></pre>
  
  <p>I dont get the array on PHP.</p>
  
  <p>Join doesnt works fine,i dont know if is because me array dont looks like: [fruit,food,meat]...</p>
  
  <p>And in the console.log test the park.join make that park be the string '~', with no other data.</p>
  
  <pre><code>var park = [];
      $.each(languajes, function(i, itemData) {
          park[i] = [];
          park[i]['idLanguaje']   = itemData['idLanguaje'];
          park[i]['name'] = $('#name-'+itemData['idLanguaje']).val();
      });
  
      console.log(park);
      console.log(park.join('~'));
  
      $.post( VIEW+THEME+"ajax/insertPark.php", {
              p:Base64.encode(park.join('~')),
      }, function(data) {
          //window.location.href='/';
      }, "json" );
  </code></pre>
  
  <p>Any idea how i can do this? The elements on the array depends of the number of languajes on database, (i.e.: the name of a park on diferents languajes), can be ES,EN or ES,EN,RU,FR... and function must adapt to this.</p>
  
  <p>Thanks in advice !</p>