I send this values to a PHP script which saves the rowData Value to a database. This are the POST Parameters:
amount 1
ident 1
orderID 101447
rowData [["0","","","","",""],["0","","","","",""],["0","","","","",""]]
storage 2
now I need a way to format a 2D Array in PHP to the same format like the rowData Parameter. Does anybody have some tips or a hint for me?
This is my JS Code:
$.ajax({
type: "POST",
url: "http://127.0.0.1/some/dir/file.php",
data: {
orderID: orderID,
storage:storage,
ident:ident,
amount:amount,
rowData:rowData//this is the 2D Array
}