Rate this script:  I Love it  /   I Hate it

hex2string


Code


<?php
  function hex2string($hex)
  {
    $string = NULL;
    $hex = str_replace(array("\n","\r"), "", $hex);
    for ($i=0; $i < $strlen($hex);$i++)
    {
      $string.= chr(hexdec(substr($hex, $i, 2)));
    }
    return $string;
  }
?>
 

 

 
hex2string scripts | hex2string snippet | hex2string example | hex2string tutorial | hex2string code