将Javascript(HTML表格内容)数组传递给php文件

Im very confused, I have been looking for a solution to pass HTML table contents via a javascript array (if this is indeed the best way of capturing HTML Table data) to a php file so I can then do whatever I like with the data.

I have simplified the table shown in my example code in order to make it easier, the table i will be using live will have a lot of rows with more complicated data etc.

The current code in get_table_data_php is:-

<script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script>

<div id ="results_table">
    <table id="stats_table">
        <tr>
            <td>Car</td><td>Engine</td><td>Color</td><td>Price</td>
        </tr>
        <tr>
            <td>Ford</td><td>2 Litre</td><td>Blue</td><td>22,000</td>
        </tr>
        <tr>
            <td>Audi</td><td>2.5 Litre</td><td>White</td><td>25,000</td>
        </tr>
    </table>    
</div> 


<script>
var myTableArray = [];
$("table#stats_table tr").each(function() { 
    var arrayOfThisRow = [];
    var tableData = $(this).find('td');
    if (tableData.length > 0) {
        tableData.each(function() { arrayOfThisRow.push($(this).text()); });
        myTableArray.push(arrayOfThisRow);
    }
});

alert(myTableArray); // alerts the entire array

alert(myTableArray[0][0]); // Alerts the first tabledata of the first tablerow

$.ajax({
   type: "POST",
   data: {myTableArray:myTableArray},
   url: "stats.php",
   success: function(msg){
     $('.answer').html(msg);
   }
});


</script>

The code in the stats.php file being called is as follows:-

<?php
var_dump($_POST);
?>

The code in the calling php file runs as expected and shows (via the alert(s) which are there for my sanity) the table data as expected.

The file called (stats.php) however does not do anything and as such I do not know if its working and what the issue is as to why it isn't.

I am pretty new to the Javascript and Ajax side of things so any help would be appreciated.

Regards

Alan