<?
$IBLOCK_ID = 5;
$arFilter = Array(
'IBLOCK_ID'=>$IBLOCK_ID,
'ACTIVE'=>'Y',
'DEPTH_LEVEL' => 3,
);
$rsResult = CIBlockSection::GetTreeList($arFilter);
while($arResult = $rsResult->GetNext()){
$arResult["ID"] = $hi;
}
?>
<?foreach ($arResult["ID"] as $hi) {?>
<?=$hi;?> //не работает
<?}?>
<?
$IBLOCK_ID = 5;
$arFilter = Array(
'IBLOCK_ID'=>$IBLOCK_ID,
'ACTIVE'=>'Y',
'DEPTH_LEVEL' => 3,
);
$rsResult = CIBlockSection::GetTreeList($arFilter);
while($arSection = $rsResult->GetNext()){
$arResult["ID"][] = $arSection;
}
?>
<?foreach ($arResult["ID"] as $hi) {?>
<? print_r($hi); ?> //не работает
<?}?>
error_reporting(E_ALL);
while($arResult = $rsResult->GetNext()){
$arResult["ID"] = $hi;
}
<?foreach ($arResult["ID"] as $hi) {?>