note 25856 added to function.bin2hex
| From: | matthew dot eastman at hotpop dot com | Date: | Wed, 09 Oct 2002 03:00:24 +0000 |
| Subject: | note 25856 added to function.bin2hex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37824@lists.php.net to get a copy of this message | ||
This function undoes it (converts back into ASCII).
function hex2asc($myin) {
for ($i=0; $i<strlen($myin)/2; $i++) {
$myout.=chr(base_convert(substr($myin,$i*2,2),16,10));
}
return $myout;
}
--
http://www.php.net/manual/en/function.bin2hex.php
http://master.php.net/manage/user-notes.php?action=edit+25856
http://master.php.net/manage/user-notes.php?action=delete+25856
http://master.php.net/manage/user-notes.php?action=reject+25856