Fw: [PHP-DEV] PHP 4.0 Bug #7829: hex2bin()?

From: Date: Wed, 15 Nov 2000 17:08:29 +0000
Subject: Fw: [PHP-DEV] PHP 4.0 Bug #7829: hex2bin()?
Groups: php.dev 
Request: Send a blank email to php-dev+get-38153@lists.php.net to get a copy of this message
function hex2bin($hex_str) { for ($i = 0; $i < strlen($hex_str); $i += 2) { $bin_str .= chr(hexdec(substr($hex_str, $i, 2))); } return $bin_str; } I've been using this homemade one in the past, but I agree that a hex2bin function should be built in. ----- Original Message ----- From: <marten@hellointeractive.tv> To: <php-dev@lists.php.net> Sent: Wednesday, November 15, 2000 5:16 AM Subject: [PHP-DEV] PHP 4.0 Bug #7829: hex2bin()? From: marten@hellointeractive.tv Operating system: PHP version: 4.0 Latest CVS (15/11/2000) PHP Bug Type: Feature/Change Request Bug description: hex2bin()? We have bin2hex(), how about adding hex2bin()? -- Edit Bug report at: http://bugs.php.net/?id=7829&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net For additional commands, e-mail: php-dev-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#38153) next »