$NEWS_IBLOCK_ID = 33; $NEWS_ID = 573; $PROPERTY_CODE = "THEME"; $PROPERTY_VALUE[] = array( 'VALUE'=> 555); $PROPERTY_VALUE[] = array( 'VALUE'=> 557); $res = CIBlockElement::SetPropertyValuesEx($NEWS_IBLOCK_ID, $NEWS_ID, array($PROPERTY_CODE => $PROPERTY_VALUE));
$res = CIBlockElement::GetProperty($NEWS_IBLOCK_ID, $NEWS_ID, "sort", "asc", Array("CODE"=>"THEME")); while ($ob = $res->GetNext()) { echo $ob["VALUE"].'<br/>'; }