<?php
"name" => "Бред" ,
"first-thread" => "Webm-тред" ,
"second-thread" => "Тред няшных котиков"
)
) ,
"name" => "Сериалы" ,
"first-thread" => "Доктор Кто" ,
"second-thread" => "Шерлок Холмс" ,
"third-thread" => "Игра престолов"
)
) ,
"name" => "Программирование" ,
"first-thread" => "Клуб изучающих PHP" ,
"second-thread" => "JavaScript тред" ,
"whoops" => "C++ тред"
)
) ,
"name" => "Фильмы" ,
"pinned thread" => "Поиск кино" ,
"first-thread" => "Драйв" ,
"second-thread" => "Мертвец Джима Джармуша"
)
)
) ;
foreach ( $boards as $key => $board ) {
foreach ( $board as $boardKey => $boardItem ) {
if ( $boardKey == "name" ) {
echo "Название доски: " . $boardItem . "\n " ;
} else {
echo "Треды:\n " ;
$i = 0 ;
foreach ( $board [ $boardKey ] as $value ) {
$i ++;
echo " " . $value . "\n " ;
}
echo " " . "Количество тредов: " . $i . "\n " ;
}
}
}
PD9waHAKCiRib2FyZHMgPSBhcnJheSgKICAgICIvYi8iID0+IGFycmF5KAogICAgICAgICJuYW1lIiA9PiAi0JHRgNC10LQiLAogICAgICAgICJ0aHJlYWRzIiA9PiBhcnJheSgKICAgICAgICAgICAgImZpcnN0LXRocmVhZCIgPT4gIldlYm0t0YLRgNC10LQiLAogICAgICAgICAgICAic2Vjb25kLXRocmVhZCIgPT4gItCi0YDQtdC0INC90Y/RiNC90YvRhSDQutC+0YLQuNC60L7QsiIKICAgICAgICApCiAgICApLAogICAgIi90di8iID0+IGFycmF5KAogICAgICAgICJuYW1lIiA9PiAi0KHQtdGA0LjQsNC70YsiLAogICAgICAgICJ0aHJlYWRzIiA9PiBhcnJheSgKICAgICAgICAgICAgImZpcnN0LXRocmVhZCIgPT4gItCU0L7QutGC0L7RgCDQmtGC0L4iLAogICAgICAgICAgICAic2Vjb25kLXRocmVhZCIgPT4gItCo0LXRgNC70L7QuiDQpdC+0LvQvNGBIiwKICAgICAgICAgICAgInRoaXJkLXRocmVhZCIgPT4gItCY0LPRgNCwINC/0YDQtdGB0YLQvtC70L7QsiIKICAgICAgICApCiAgICApLAogICAgIi9wci8iID0+IGFycmF5KAogICAgICAgICJuYW1lIiA9PiAi0J/RgNC+0LPRgNCw0LzQvNC40YDQvtCy0LDQvdC40LUiLAogICAgICAgICJ0aHJlYWRzIiA9PiBhcnJheSgKICAgICAgICAgICAgImZpcnN0LXRocmVhZCIgPT4gItCa0LvRg9CxINC40LfRg9GH0LDRjtGJ0LjRhSBQSFAiLAogICAgICAgICAgICAic2Vjb25kLXRocmVhZCIgPT4gIkphdmFTY3JpcHQg0YLRgNC10LQiLAogICAgICAgICAgICAid2hvb3BzIiA9PiAiQysrINGC0YDQtdC0IgogICAgICAgICkKICAgICksCiAgICAiL21vdi8iID0+IGFycmF5KAogICAgICAgICJuYW1lIiA9PiAi0KTQuNC70YzQvNGLIiwKICAgICAgICAidGhyZWFkcyIgPT4gYXJyYXkoCiAgICAgICAgICAgICJwaW5uZWQgdGhyZWFkIiA9PiAi0J/QvtC40YHQuiDQutC40L3QviIsCiAgICAgICAgICAgICJmaXJzdC10aHJlYWQiID0+ICLQlNGA0LDQudCyIiwKICAgICAgICAgICAgInNlY29uZC10aHJlYWQiID0+ICLQnNC10YDRgtCy0LXRhiDQlNC20LjQvNCwINCU0LbQsNGA0LzRg9GI0LAiCiAgICAgICAgKQogICAgKQopOwoKZm9yZWFjaCAoJGJvYXJkcyBhcyAka2V5ID0+ICRib2FyZCkgewogICAgZm9yZWFjaCAoJGJvYXJkIGFzICRib2FyZEtleSA9PiAkYm9hcmRJdGVtKSB7CiAgICAgICAgaWYgKCRib2FyZEtleSA9PSAibmFtZSIpIHsKICAgICAgICAgICAgZWNobyAi0J3QsNC30LLQsNC90LjQtSDQtNC+0YHQutC4OiAiLiRib2FyZEl0ZW0uIlxuIjsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgICBlY2hvICLQotGA0LXQtNGLOlxuIjsKICAgICAgICAgICAgJGkgPSAwOwogICAgICAgICAgICBmb3JlYWNoICgkYm9hcmRbJGJvYXJkS2V5XSBhcyAkdmFsdWUpIHsKICAgICAgICAgICAgICAgICRpKys7CiAgICAgICAgICAgICAgICBlY2hvICIgICIuJHZhbHVlLiJcbiI7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgZWNobyAiICAiLiLQmtC+0LvQuNGH0LXRgdGC0LLQviDRgtGA0LXQtNC+0LI6ICIuJGkuIlxuIjsKICAgICAgICB9ICAgICAgICAKICAgIH0KfQ==