private function packFloat($float) { // machine order $t1 = pack('f', $float); // int in machine order list(, $t2) = unpack('L*', $t1); return pack('N', $t2); }