I am new to PHP and stuck here, I want to view the values and structure of $_ITEM array. I have following php code.
$this->dtgItem->AddColumn(new QDataGridColumn('Item', '<?= $_ITEM->ShortDescription ?>', 'CssClass="dtg_column_print"'));
$this->dtgItem->AddColumn(new QDataGridColumn('Code', '<?= $_ITEM->RenderBarcode() ?>', 'Width=200', 'CssClass="dtg_column_print"', 'HtmlEntities=false'));
$this->dtgItem->AddColumn(new QDataGridColumn('Qty', '<?= $_ITEM->Quantity ?>', 'Width=100','CssClass=dtg_column_print'));
$this->dtgItem->AddColumn(new QDataGridColumn('Receipt #', '<?= $_ITEM->ReceiptNumber ?>', 'CssClass=dtg_column_print'));
I want to view structure of the $_ITEM Array.
I have tried following but it does not work.
echo "<pre style=\"font-size:12px;\">".print_r($_ITEM,true)."</pre>";
I would appreciate if someone can help to figure this out.
Thanks
change your code to:
echo "<pre style='font-size:12px;'>";
print_r($_ITEM); echo '</pre>';
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.