bin2hex.php 218 B

1234567891011
  1. <?php
  2. $str = base64_decode("EAE=");
  3. echo $str."<br>";
  4. $strl= strlen($str);
  5. for ($i = 0;$i < $strl; $i++)
  6. {
  7. $char = bin2hex(substr($str,$i,1));
  8. echo $char;
  9. }
  10. //$test = '&#x'.bin2hex($str);
  11. //echo $str;