Коллеги, ацки туплю, поэтому прошу помощи.
array(3) {
["countries"]=>
array(6) {
[0]=>
string(2) "ru"
[1]=>
string(9) "australia"
[2]=>
string(3) "usa"
[3]=>
string(2) "by"
[4]=>
string(7) "germany"
[5]=>
string(7) "croatia"
}
["genres"]=>
array(33) {
[0]=>
string(9) "animation"
[1]=>
string(9) "biography"
[2]=>
string(6) "action"
[3]=>
string(7) "western"
[4]=>
string(8) "military"
[5]=>
string(8) "criminal"
[6]=>
string(8) "children"
[7]=>
string(11) "documentary"
[8]=>
string(5) "drama"
[9]=>
string(7) "history"
[10]=>
string(6) "comedy"
[11]=>
string(5) "short"
[12]=>
string(8) "romantic"
[13]=>
string(6) "mystic"
[14]=>
string(7) "musical"
[15]=>
string(4) "noir"
[16]=>
string(9) "adventure"
[17]=>
string(6) "family"
[18]=>
string(9) "fairytale"
[19]=>
string(5) "sport"
[20]=>
string(8) "thriller"
[21]=>
string(6) "horror"
[22]=>
string(6) "sci-fi"
[23]=>
string(7) "fantasy"
[24]=>
string(6) "erotic"
[25]=>
string(6) "series"
[26]=>
string(10) "collection"
[27]=>
string(5) "opera"
[28]=>
string(9) "detective"
[29]=>
string(8) "festival"
[30]=>
string(10) "perfomance"
[31]=>
string(6) "ballet"
[32]=>
string(8) "Тест"
}
["years"]=>
string(4) "2013"
}
Массив нужно собрать в строку пути, со всеми возможными вариантами текущей последовательности.
Т.е. /ru/animation/2013; /ru/biography/2013/;..../croatia/Тест/2013/;