Код |
---|
$arFilter=array("IBLOCK_ID"=>"10"); $res = CIBlockElement::GetList(Array(), $arFilter); while ($ob = $res->GetNextElement()) { $arFields = $ob->GetFields(); if(array_key_exists("PREVIEW_PICTURE", $arFields )) $arFields["PREVIEW_PICTURE"] = CFile::GetFileArray($arFields["PREVIEW_PICTURE"]); print_r($arFields); } |