how to use for each with nested array

join shbcf.ru