Php help!

Off topicProgramming → Php help!

I just working on a “(Hungarian)three letters back decoder”. I’m doing it in PHP, but i’m having troubles. Someone can help me? Someone can hear me? ABC1 is the original abc, and ABC2 is the shifted abc… edit: I did some work on it, it’s working pretty good…but not always…i mean’t like… never.

<?php
$input   = explode(" ", "o cs d c ó");
$ABC1    = array(
    'a',
    'á',
    'b',
    'c',
    'cs',
    'd',
    'dz',
    'dzs',
    'e',
    'é',
    'f',
    'g',
    'gy',
    'h',
    'i',
    'í',
    'j',
    'k',
    'l',
    'ly',
    'm',
    'n',
    'ny',
    'o',
    'ó',
    'ö',
    'ő',
    'p',
    'q',
    'r',
    's',
    'sz',
    't',
    'ty',
    'u',
    'ú',
    'ü',
    'ű',
    'v',
    'w',
    'x',
    'y',
    'z',
    'zs'
);
$ABC2    = array(
    'y',
    'z',
    'zs',
    'a',
    'á',
    'b',
    'c',
    'cs',
    'd',
    'dz',
    'dzs',
    'e',
    'é',
    'f',
    'g',
    'gy',
    'h',
    'i',
    'í',
    'j',
    'k',
    'l',
    'ly',
    'm',
    'n',
    'ny',
    'o',
    'ó',
    'ö',
    'ő',
    'p',
    'q',
    'r',
    's',
    'sz',
    't',
    'ty',
    'u',
    'ú',
    'ü',
    'ű',
    'v',
    'w',
    'x'
);
$lenght2 = count($ABC1);
$lenght1 = count($input);
for ($i = 0; $i < $lenght2; $i++) {
    for ($a = 0; $a < $lenght1; $a++) {
        if ($ABC1[$i] == $input[$a]) {
            print(utf8_decode($ABC2[$i]));
            print(" ");
        }
        ;
    }
    ;
}
;
?>

PHP directed by: Michael Bay

$input = explode