<?
$db_list = CIBlockSection::GetList(Array($by=>$order), $arFilter = Array("IBLOCK_ID"=>$arResult["IBLOCK_ID"], "ID"=>$arResult["ID"]), true,$arSelect=Array("UF_PRICE_NAME"));
while($ar_result = $db_list->GetNext()):
?>
<?$rs_result[] = $ar_result;?>
<?endwhile?>
<?foreach($rs_result as $key => $prices_name):?>
<?=$prices_name["UF_PRICE_NAME"][$key];?><br> //таким образом выводится только один элемент
<?endforeach?>
<?
$db_list = CIBlockSection::GetList(Array($by=>$order), Array("IBLOCK_ID"=>$arResult["IBLOCK_ID"]), true, Array("UF_PRICE_NAME"));
while($ar_result = $db_list->GetNext()):
?>
<?$rs_result[] = $ar_result;?>
<?endwhile?>
<?foreach($rs_result as $key => $prices_name):?>
<?=$rs_result[$key]["UF_PRICE_NAME"];?><br>
<?endforeach?>
Или
<?foreach($rs_result as $key => $prices_name):?>
<?=$prices_name["UF_PRICE_NAME"];?><br>
<?endforeach?>