<?php
't' => array ('t1','t2','t3'), 'c' => array ('c1','c2','c3'), 'd' => array ('d1','d2','d3'), );
'j' => array ('j1','j2','j3'), 'm' => array ('m1','m2','m3'), 'n' => array ('n1','n2','n3'), );
$res = [];
foreach($arr1 as $key => $value){
foreach($arr2 as $k => $v){
for($i = 0 ; $i<count($v); $i++){ $res[$key.'-'.$k][] = $value[$i].'-'.$v[$i];
}
}
}
PD9waHAKCiRhcnIxID0gYXJyYXkgKAogICAgJ3QnID0+IGFycmF5ICgndDEnLCd0MicsJ3QzJyksCiAgICAnYycgPT4gYXJyYXkgKCdjMScsJ2MyJywnYzMnKSwKICAgICdkJyA9PiBhcnJheSAoJ2QxJywnZDInLCdkMycpLAopOwoKJGFycjIgPSBhcnJheSAoCiAgICAnaicgPT4gYXJyYXkgKCdqMScsJ2oyJywnajMnKSwKICAgICdtJyA9PiBhcnJheSAoJ20xJywnbTInLCdtMycpLAogICAgJ24nID0+IGFycmF5ICgnbjEnLCduMicsJ24zJyksCik7CgokcmVzID0gW107CmZvcmVhY2goJGFycjEgYXMgJGtleSA9PiAkdmFsdWUpewogICAgZm9yZWFjaCgkYXJyMiBhcyAkayA9PiAkdil7CiAgICAJZm9yKCRpID0gMCA7ICRpPGNvdW50KCR2KTsgJGkrKyl7CiAgICAgICAgCSRyZXNbJGtleS4nLScuJGtdW10gPSAkdmFsdWVbJGldLictJy4kdlskaV07CiAgICAJfQogICAgfQp9CgpwcmludF9yKCRyZXMpOw==