Return to Snippet

Revision: 22818
at January 23, 2010 00:22 by etangle


Initial Code
function hexToStr($hex)
{
    $string='';
    for ($i=0; $i < strlen($hex)-1; $i+=2)
    {
        $string .= chr(hexdec($hex[$i].$hex[$i+1]));
    }
    return $string;
}

Initial URL
http://ditio.net/2008/11/04/php-string-to-hex-and-hex-to-string-functions/

Initial Description

                                

Initial Title
Converting hex to string

Initial Tags

                                

Initial Language
PHP