etangle on 01/23/10
Last Edited at 01/23/10 12:22am
function hexToStr($hex){ $string=''; for ($i=0; $i < strlen($hex)-1; $i+=2) { $string .= chr(hexdec($hex[$i].$hex[$i+1])); } return $string;}
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.