note 107645 added to function.hex2bin

From: Date: Thu, 23 Feb 2012 15:27:01 +0000
Subject: note 107645 added to function.hex2bin
Groups: php.notes 
Request: Send a blank email to php-notes+get-186321@lists.php.net to get a copy of this message
Here is the alternative version: if(!function_exists('hex2bin')) /** * Converts the hex representation of data to binary * * http://www.php.net/manual/en/function.hex2bin.php * * @param string $str Hexadecimal representation of data * * @return string Returns the binary representation of the given data */ public function hex2bin($data) { $bin = ""; $i = 0; do { $bin .= chr(hexdec($data{$i}.$data{($i + 1)})); $i += 2; } while ($i < strlen($data)); return $bin; } } ---- Server IP: 69.147.83.197 Probable Submitter: 72.64.129.214 ---- Manual Page -- http://www.php.net/manual/en/function.hex2bin.php Edit -- https://master.php.net/note/edit/107645 Del: integrated -- https://master.php.net/note/delete/107645/integrated Del: useless -- https://master.php.net/note/delete/107645/useless Del: bad code -- https://master.php.net/note/delete/107645/bad+code Del: spam -- https://master.php.net/note/delete/107645/spam Del: non-english -- https://master.php.net/note/delete/107645/non-english Del: in docs -- https://master.php.net/note/delete/107645/in+docs Del: other reasons-- https://master.php.net/note/delete/107645 Reject -- https://master.php.net/note/reject/107645 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#186321) next »