Estimados buen dia.
Tengo lo siguiente:
Código Javascript
:
Ver originalvar selects= $table.bootstrapTable('getSelections');
var parametros={
"arreglo":selects
}
$.ajax({
data : parametros,
url: '<?php echo base_url();?>index.php/c_particular/insertar',
type: 'post',
async:false,
success: function (response) {
console.log(response);
}
});
el console log de selects:
Código XML:
Ver original0: Object
GLOSA: "aaa"
PRECIO: "17760"
TOTAL1: "17410"
UNI: "111"
state: true
__proto__: Object
1: Object
GLOSA: "sss"
PRECIO: "26640"
TOTAL1: "26120"
UNI: "222"
state: true
__proto__: Object
length: 2
__proto__: Array[0]
Con ajax envio el arreglo a otra php, la cual el print_r muestra lo siguiente:
Código XML:
Ver originalArray
(
[arreglo] => Array
(
[0] => Array
(
[UNI] => 111
[GLOSA] => aaa
[PRECIO] => 1120
[TOTAL1] => 1120
[state] => true
)
[1] => Array
(
[UNI] =>222
[GLOSA] => sss
[PRECIO] => 1980
[TOTAL1] => 1950
[state] => true
)
)
)
No se como recorrer ese array que me recibe.
Alguna sugerencia.