V
V
viktorulyushev2016-11-03 11:41:25
1C-Bitrix
viktorulyushev, 2016-11-03 11:41:25

How to count the number of elements in an array,properties file with multiple selection?

There is an infoblock, I created a file property there, with multiple selection, this is necessary to add additional pictures for the gallery, and so you need to calculate how many pictures this array stores
<?echo $result = count("more_picture") ?>
shows that 0 why?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
viktorulyushev, 2016-11-03
@viktorulyushev

I thought wrong, right like this

<?echo $result = count($arResult["PROPERTIES"]["more_picture"]["VALUE"]) ?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question