$dbEl=CIBlockElement::GetList(Array(), Array("IBLOCK_TYPE"=>"catalogue", "IBLOCK_ID"=>9));
$obEl=$dbEl->GetNextElement();
$arProps=$obEl->GetProperties();
function empty_array($arr)
{
foreach($arr as $a=>$val):
if(empty($val['VALUE'])):
unset($a);
endif;
endforeach;
return $arr;
}
|