Пример использования:
[CODE]$arFilter = array('IBLOCK_ID' => $IBLOCK_ID, 'ACTIVE' => 'Y');
$arSelect = array('ID', 'NAME');
$rsSection = CIBlockSection::GetTreeList($arFilter, $arSelect);
while($arSection = $rsSection->Fetch()) {
echo ' - '.$arSection['NAME'].'<br>';
}[/CODE]
[CODE]$arFilter = array('IBLOCK_ID' => $IBLOCK_ID, 'ACTIVE' => 'Y');
$arSelect = array('ID', 'NAME');
$rsSection = CIBlockSection::GetTreeList($arFilter, $arSelect);
while($arSection = $rsSection->Fetch()) {
echo ' - '.$arSection['NAME'].'<br>';
}[/CODE]