- mb_detect_order: documentation ( source)
- var_dump: documentation ( source)
- bin2hex: documentation ( source)
- mb_detect_encoding: documentation ( source)
<?php
$input = '';
var_dump(bin2hex($input));
var_dump( $input );
var_dump( iconv(mb_detect_encoding($input, mb_detect_order(), true), "UTF-8", $input) );