PHP Morse decoder

QuestionsPHP Morse decoder
sethbeckerman5 Staff asked 4 years ago

I'm trying to create a morse decoder using PHP, I'm nearly done but i'm getting some fatal errors, anyone could help me out, thanks.

Fatal error: Uncaught Error: Array callback must have exactly two
elements in
C:xampphtdocscegep1_introduction_programmation_webtp2index.php:49
Stack trace:
#0 C:xampphtdocscegep1_introduction_programmation_webtp2index.php(57): decrypter('-… .-. .- ……', Array)
#1 {main} thrown in C:xampphtdocscegep1_introduction_programmation_webtp2index.php on line 49

PS: It's my first time using this website so if I didn't post that right sorry, just point me my mistakes! Here's my code:


View on Stack Overflow