Return to Snippet

Revision: 22817
at January 23, 2010 00:20 by etangle


Initial Code
function strToHex($string)
{
    $hex='';
    for ($i=0; $i < strlen($string); $i++)
    {
        $hex .= dechex(ord($string[$i]));
    }
    return $hex;
}

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

Initial Description

                                

Initial Title
Converting string to hex

Initial Tags

                                

Initial Language
PHP