I have some problems getting values from foreach in foreach. So I\'m getting some values from database and foreach them in function, but those values have another foreach so I n