<?php
if (\Bitrix\Main\Loader::includeModule('iblock')) {
$elementIterator = \Bitrix\Iblock\ElementTable::getList([
'select' => [
'*',
],
'filter' => [
'=IBLOCK_ID' => 1,
]
]);
foreach ($elementIterator->fetchAll() as $element) {
echo '<pre>';print_r($element);echo '</pre>';
}
}