as u know this code replase all numbers in variable to "5"
$a="P 3 R 7 c G U 9 Z H l u Y W";
echo ereg_replace("[0-9]","5",$a);
but i want to all number be encode with base64_encode()
in other mean in this example the ouput must:
P Mw== R Nw== c G U OQ== Z H l u Y W
any idea?