6
I have the following array:
$dados = array(
'0' => array(
'id_assinante' => $id,
'nome' => 'Aluguel'
),
'1' => array(
'id_assinante' => $id,
'nome' => 'Água'
),
'2' => array(
'id_assinante' => $id,
'nome' => 'Contabilidade'
),
'3' => array(
'id_assinante' => $id,
'nome' => 'Energia'
),
'4' => array(
'id_assinante' => $id,
'nome' => 'Imposto'
),
'5' => array(
'id_assinante' => $id,
'nome' => 'IPTU'
),
'6' => array(
'id_assinante' => $id,
'nome' => 'Marketing'
),
'7' => array(
'id_assinante' => $id,
'nome' => 'Telefone'
)
);
In this case it works perfectly, but is there any way to do it more simply? Being that the $id
will always be the same, and each name field value will have a different name?
This array is mounted fixed, same as in the question?
– rray
There is the code... Yes it is mounted fixed, I will include the items manually...
– Sr. André Baill