I have an info block of which id 3, inside of which there is a section with id 16, how to get all its elements
$arSelect = Array("ID","IBLOCK_ID","IBLOCK_SECTION_ID", "NAME", "OBJECT_LONGITUDE", "OBJECT_LATITUDE"); $arFilter = Array("IBLOCK_ID"=>3,"IBLOCK_SECTION_ID"=> 16, "ACTIVE"=>"Y"); $res = CIBlockElement::GetList(Array(), $arFilter, false, false, $arSelect); while($ob = $res->GetNextElement()){ $arProps = $ob->GetFields(); print_r($arProps); }