I have 3 arrays
$description[$cat_id][$kit_id][$item_id] = $description ;
$description2[$cat_id][$kit_id][$item_id] = $description2 ;
$qty_total[$cat_id][$kit_id][$item_id] = $qty;
foreach ($qty_total AS $key => $val) {
echo "Cat: ".$key."<br />";
foreach ($val AS $kkey => $kval) {
echo " Kit: ".$kkey."<br />";
foreach ($kval AS $ikey => $ival) {
echo " Item: ".$ikey." - ".$ival."<br />";
}
}
}
This brings only qty.
My question is how to get qty, description, description2 for given [cat_id][kit_id][item_id]?
$items[$cat_id][$kit_id][$item_id] = ["description" => $description, "description2" => $description2, "qty" => $qty];