etangle on 01/23/10
Last Edited at 01/23/10 12:20am
function strToHex($string){ $hex=''; for ($i=0; $i < strlen($string); $i++) { $hex .= dechex(ord($string[$i])); } return $hex;}
URL: http://ditio.net/2008/11/04/php-string-to-hex-and-hex-to-string-functions/
Report this snippet Tweet
Comment:
You need to login to post a comment.