D
D
Darklt2021-01-30 19:32:33
1C-Bitrix
Darklt, 2021-01-30 19:32:33

How to display a multiple property of a custom property individually?

There is a multiple user field for example arUser UF_ADRESS

Displayed in main.profile component

<?foreach($arResult["arUser"]["UF_ADRESS"] as $adr):?>
<div id="<?=$adr["ID"]?>">
<div><?=$adr["NAME"]?></div>
 </div>
<?endforeach;?>


For some reason, this construction does not work, only print works and outputs just in a row.
<?print_r($adr);?>
echo produces the following:
Array
(
    [0] => Москва, Кутузовский  6
    [1] => Москва, Кутузовский 12
)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question