Forum Moderators: coopster
<?php function hex2bin($s) { for ($i = 0; $i < strlen($s); $i += 2) { $bin .= chr(hexdec(substr($s,$i,2))); } return $bin; } print hex2bin('47494638396101000100800000ffffff00000021f90401000000002c00000000010001000002024401003b'); ?>
Andreas