I need to go through an arrangement $data
that is as follows:
array(2) {
[0]=> object(stdClass)#18 (4) {
["Descripción"]=> string(5) "Aceite"
["Codigo"]=> string(7) "2222222"
["Precio"]=> string(2) "45"
["Eliminar"]=> string(9) " Eliminar"
}
[1]=> object(stdClass)#19 (4) {
["Descripción"]=> string(4) "Caja"
["Codigo"]=> string(7) "1111111"
["Precio"]=> string(2) "50"
["Eliminar"]=> string(9) " Eliminar"
}
}
I currently have the following for
that gives me an error, that I can not access the data
for ($i=0; $i < count($data) {
$datos['codigo'] = $repuesto->codigo;
$datos['descripcion'] = $repuesto->Descripcion;
$datos['valor'] = $repuesto->Precio;
$datos['token'] = $this->funciones->RandomCaracteres(49);
}
How do I access the fix data?