1
有人可以解釋我怎樣才能看到我的「物品」?有關陣列內陣列的PHP數組幫助
這是我的數組
Array (
[idreserva] => 703
[sala] => 7 - INF
[data] => 2016-05-28
[inicio] => 21:00:00
[fim] => 23:30:00
[equip1] => Leitor/CD/ USB
[equip2] => Projetor
[atividade] =>
[usernome] => xxxxx
[items] => Array (
[0] => Leitor/CD/ USB; Projetor
)
)
當我嘗試print..eveything來,但沒有 「項目」
$titles = array(
'sala' => '<b>Sala</b>',
'usernome' => '<b>Docente</b>',
'data' => '<b>Data</b>',
'inicio' => utf8_decode('<b>Início</b>'),
'fim' => '<b>Fim</b>',
'items' =>utf8_decode('<b>Equipamento</b>')
);
$parametros_adicionales = array(
'width'=>570,
'showHeadings'=>1,
'fontSize' => 9,
'colGap'=>2,
'xPos' => 'center',
'xOrientation'=>'center',
'cols'=>array(
"sala" => array('justification'=>'center', 'width' => '100'),
"usernome" => array('justification'=>'center', 'width' => '200'),
"data" => array('justification'=>'center', 'width' => '80'),
"inicio" => array('justification'=>'center', 'width' => '60'),
"fim" => array('justification'=>'center', 'width' => '60'),
"items" => array('justification'=>'center', 'width' => '150')));
我該怎麼辦呢?
其實你正在試圖achieve.Your的解釋是不夠的。 –
我想要在我的pdf中有「項目」...我有所有的領域,但我沒有這一個,並通過print_r我有「項目」,所以爲什麼$ parametros_adicionales =數組()沒有得到「項目」字段? – gmc1972
嘗試刪除項目數組中的分號 – jophab