note 26648 added to function.unpack

From: Date: Fri, 08 Nov 2002 08:23:22 +0000
Subject: note 26648 added to function.unpack
Groups: php.notes 
Request: Send a blank email to php-notes+get-39132@lists.php.net to get a copy of this message
I can't get this thing to WORK. I have a string with binary representation of integer followed by binary float, so 8 bytes... $data = unpack("ikills/ftime", $string); print "$data[kills], $data[time]\n"; And I get numbers like 65646, -0.0019683837890625, which I know are wrong, time can never be negative. -- http://www.php.net/manual/en/function.unpack.php http://master.php.net/manage/user-notes.php?action=edit+26648 http://master.php.net/manage/user-notes.php?action=delete+26648 http://master.php.net/manage/user-notes.php?action=reject+26648

« previous php.notes (#39132) next »