$arFilter = Array("IBLOCK_ID"=>$IBLOCK_ID, "SECTION_ID"=>$SECTION_ID, "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y");
CModule::IncludeModule('iblock');
$arFilter = Array("IBLOCK_ID"=>"$IBLOCK_ID", "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", 'INCLUDE_SUBSECTIONS'=>'Y', );
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, array());
while ($ob = $res->GetNextElement())
{
$arr = $ob->GetFields();
$arr["PROPERTIES"] = $ob->GetProperties();
}