- var_dump: documentation ( source)
- bindec: documentation ( source)
- ctype_upper: documentation ( source)
- strrev: documentation ( source)
- str_split: documentation ( source)
<?php
$z = "hejsanhejsan";//$argv[1];
$x = str_split($z, 5);
$l = "ABCDEFGHIJKLMNOPQRSTUVWXYZ012345";
foreach ($x as $y) {
var_dump(str_split(strrev($y)));
foreach (str_split(strrev($y)) as $w) {
$y[] = ctype_upper($w);
}
$z .= $l[bindec($y)];
}
echo $z;