- print_r: documentation ( source)
<?php
$brin = 'Gynzy';
$salesorderid = 2562;
$aantal = 4;
$product_id = 45;
$hallo = [
'brin' => $brin,
'salesorderid' => $salesorderid
// 'productlines' => [
// 'quantity' => $aantal,
// 'product_id' => $product_id
// ]
];
$hallo['productlines'] = ['quantity' => 5,
'product_id' => 678
];
print_r ($hallo);
?>