- mb_convert_encoding: documentation ( source)
- var_dump: documentation ( source)
- bin2hex: documentation ( source)
- base64_decode: documentation ( source)
<?php
$a = base64_decode('AQAB');
$b = mb_convert_encoding( 'AQAB', "UTF-8", "BASE64" );
var_dump(bin2hex($a));
var_dump(bin2hex($b));