Answer the question
In order to leave comments, you need to log in
How to remove elements from array output in foreach loop?
There is such an array that displays the properties of the infoblock:
How can I do this so that, for example, the name and surname are not displayed? I tried unset, nothing happened.
Answer the question
In order to leave comments, you need to log in
Declare array with blacklist
below foreach add condition
if(!in_array($arproperty["NAME"], $blacklist))
{
//отображаем
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question