note 99426 added to function.bin2hex

From: Date: Tue, 17 Aug 2010 01:11:32 +0000
Subject: note 99426 added to function.bin2hex
Groups: php.notes 
Request: Send a blank email to php-notes+get-171743@lists.php.net to get a copy of this message
For those who need it: function hex2bin($hex_str) { return pack('H*', $hex_str); } This is good for converting hash strings from the hex values they output into binary. eg. sha1("hello", true) ---- Server IP: 69.147.83.197 Probable Submitter: 216.252.78.78 ---- Manual Page -- http://www.php.net/manual/en/function.bin2hex.php Edit -- https://master.php.net/note/edit/99426 Del: integrated -- https://master.php.net/note/delete/99426/integrated Del: useless -- https://master.php.net/note/delete/99426/useless Del: bad code -- https://master.php.net/note/delete/99426/bad+code Del: spam -- https://master.php.net/note/delete/99426/spam Del: non-english -- https://master.php.net/note/delete/99426/non-english Del: in docs -- https://master.php.net/note/delete/99426/in+docs Del: other reasons-- https://master.php.net/note/delete/99426 Reject -- https://master.php.net/note/reject/99426 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171743) next »