Skip to content

Instantly share code, notes, and snippets.

@Ginnw2
Created February 22, 2020 18:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ginnw2/ca7fcc8add90824fd657124bbae375f0 to your computer and use it in GitHub Desktop.
Save Ginnw2/ca7fcc8add90824fd657124bbae375f0 to your computer and use it in GitHub Desktop.
$arSelect = Array();//IBLOCK_ID и ID обязательно должны быть указаны, см. описание arSelectFields выше
$arFilter = Array("IBLOCK_ID"=>IntVal($IBLOCK_ID), "ELEMENT_ID"=>$ELEMENT_ID);
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array("nPageSize"=>1), $arSelect);
while($ob = $res->GetNextElement()){
$arFields = $ob->GetFields(); //параметры
$arProps = $ob->GetProperties(); //свойства
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment