Problem With Array Multidimensional
Hello,
I have a big problem with a Insert Element of a multidimensional Array, that i send by AJAX.
I explain you my problem:
Here my JS Code
Code:
for(i=0; i<=length; i++){
for(j=0;j<width;j++){
// je récupère un à un (cellule par cellule) les valeurs d'un tableau html
// I get value of Cell, one and one , of my html Table
result = document.getElementById("table").rows[i].cells[j].innerHTML;
// Construct my Array
table_export[i]= new Array;
table_export[i][j] = result;
}
}
Then I send my table to php file, which return me a result of print_r($_POST)
My problem is here ! The php Fil return me this Array =>
Code:
Array
(
[0] => ,,tata
[1] => ,,,pupu
)
But I want =>
Code:
Array
(
[0] => Array
(
[0] => "toto"
[1] => "titi"
[2] => "tata"
)
[1] => Array
(
[0] => "popo"
[1] => "pipi"
[2] => "pupu"
)
)
HELP ME PLEASE !