T
T
tipidl2018-04-02 14:45:52
PHP
tipidl, 2018-04-02 14:45:52

How to remove elements from array output in foreach loop?

There is such an array that displays the properties of the infoblock:
5ac21782a1ad3504141265.png5ac217ad2614b589788717.png
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

1 answer(s)
Z
zvonok1337, 2018-04-02
@tipidl

Declare array with blacklist
below foreach add condition

if(!in_array($arproperty["NAME"], $blacklist))
{
//отображаем
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question