X (aufrück), S->E (wechseln) // Vermutung: foebloot --> for blood // etaoinshrdlcumwfgypbvkjxqz $w1 = 'GPRFXMIYWEBTSQZUVJNOKHDLAC'; $w2 = 'WSJKLZOQUATYIHVEPBDXMCFGNR'; // Vermutung: suffea -> suffer // etaoinshrdlcumwfgypbvkjxqz $w5 = 'LFUCXSMQRODGZWTHKPJBYAENIV'; // Vermutung: heen --> seen // etaoinshrdlcumwfgypbvkjxqz $w3 = 'JYUHKLBVDXASMCNWEROFZTPQIG'; // Vermutung: wnat --> what // etaoinshrdlcumwfgypbvkjxqz $w4 = 'SMJBHKILTANWQXFGPEZYDORCUV'; */ # --- $wae = explodechars($we); $wa1 = explodechars($w1); $wa2 = explodechars($w2); $wa3 = explodechars($w3); $wa4 = explodechars($w4); $wa5 = explodechars($w5); $k1 = str_replace($wa1, $wae, $c1); $k2 = str_replace($wa2, $wae, $c2); $k3 = str_replace($wa3, $wae, $c3); $k4 = str_replace($wa4, $wae, $c4); $k5 = str_replace($wa5, $wae, $c5); # Merge $c1a = explode(' ', $k1); $c2a = explode(' ', $k2); $c3a = explode(' ', $k3); $c4a = explode(' ', $k4); $c5a = explode(' ', $k5); $col1 = 'red'; $col2 = 'green'; $col3 = 'blue'; $col4 = 'brown'; $col5 = 'purple'; $res = ''; for ($i=0; true; $i++) { $resbak = $res; if (isset($c1a[$i])) { $res .= "".$c1a[$i].""; $origin .= str_repeat("1", strlen($c1a[$i])); } if (isset($c2a[$i])) { $res .= "".$c2a[$i].""; $origin .= str_repeat("2", strlen($c2a[$i])); } if (isset($c3a[$i])) { $res .= "".$c3a[$i].""; $origin .= str_repeat("3", strlen($c3a[$i])); } if (isset($c4a[$i])) { $res .= "".$c4a[$i].""; $origin .= str_repeat("4", strlen($c4a[$i])); } if (isset($c5a[$i])) { $res .= "".$c5a[$i]."
"; $origin .= str_repeat("5", strlen($c5a[$i])); } if ($res == $resbak) break; } echo "\n"; echo $res."\n"; #echo $origin; echo "\n"; # --- function explodechars($x) { $res = array(); for ($i=0; $i