У меня проблема с отображением строки внутри зацикленных строк с использованием PHP.Вот точный код, который у меня есть:
Рисунок 1 `
if (sizeof($items) > 0) {
foreach ($items as $item) {
//customisation starts - jm 10:54 AM 20/11/2018
//if block for material type
$this->data->currentItem = $item;
if ($item->getType() == 0) {
$this->getRow($this->style->itemList['rows']['materialSubHeader'], false, 'currentHeader', $withHeader);
$this->getRow($this->style->itemList['rows']['matContent'], false, 'currentHeader', $withHeader);
}
if ($item->getType() == 1) {
$this->getRow($this->style->itemList['rows']['lbrContent'], false, 'currentHeader', $withHeader);
}
$withHeader = false;
$this->currentHeader = $otherHeader;
//customisation ends - jm 10:54 AM 20/11/2018
}
}
}
`
В этой строке есть строка с меткой «Материал»
из этой фотографии

Эти материалы не должны повторяться на зацикленном содержимом.
Этот код ниже основан на рисунке 1 вышеэтот пост Этот код отвечает за отображение метки Материал, который зациклен
$this->getRow($this->style->itemList['rows']['materialSubHeader'], false, 'currentHeader', $withHeader);
По этому коду ниже на основе рисунка 1 Этот код отвечает за отображение содержимого
$this->getRow($this->style->itemList['rows']['matContent'], false, 'currentHeader', $withHeader);
Как мне остановить итерацию первой строки.
Заранее спасибо