Location: PHPKode > scripts > CodeBreak - Hidden Morse Code > codebreak-hidden-morse-code/decode_morse.inc.php
<?php
$search_characters_second = array("^.-^", "^-...^", "^-.-.^", "^-..^", "^.^", "^..-.^", "^--.^", "^....^", "^..^", "^.---^", "^-.-^", "^.-..^", "^--^", "^-.^", "^---^", "^.--.^", "^--.-^", "^.-.^", "^...^", "^-^", "^..-^", "^...-^", "^.--^", "^-..-^", "^-.--^", "^--..^", "^-----^", "^.----^", "^..---^", "^...--^", "^....-^", "^.....^", "^-....^", "^--...^", "^---..^", "^----.^", "^.-.-.-^", "^--..--^", "^---...^", "^..--..^", "^.----.^", "^-....-^");
$replace_characters_second = array("^A^", "^B^", "^C^", "^D^", "^E^", "^F^", "^G^", "^H^", "^I^", "^J^", "^K^", "^L^", "^M^", "^N^", "^O^", "^P^", "^Q^", "^R^", "^S^", "^T^", "^U^", "^V^", "^W^", "^X^", "^Y^", "^Z^", "^0^", "^1^", "^2^", "^3^", "^4^", "^5^", "^6^", "^7^", "^8^", "^9^", "^.^", "^,^", "^:^", "^?^", "^'^", "^-^");
$output_text = str_replace($search_characters_first, $replace_characters_first, $output_text);
$output_text = str_replace($search_characters_second, $replace_characters_second, $output_text);
$output_text = str_replace("^", "", $output_text);
$output_text = strtoupper($output_text);
?>
Return current item: CodeBreak - Hidden Morse Code