Answer the question
In order to leave comments, you need to log in
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
I thought wrong, right like this
<?echo $result = count($arResult["PROPERTIES"]["more_picture"]["VALUE"]) ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question