note 26648 rejected from function.unpack by nicos

From: Date: Fri, 08 Nov 2002 09:03:31 +0000
Subject: note 26648 rejected from function.unpack by nicos
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-39137@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.

« previous php.notes (#39137) next »