note 71886 deleted from language.types.float by bjori
| From: | bjori@php.net | Date: | Thu, 27 Sep 2007 12:32:05 +0000 |
| Subject: | note 71886 deleted from language.types.float by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-130849@lists.php.net to get a copy of this message | ||
Note Submitter: duc at vtechmate dot com
----
A tip for vic@liveforspeed.net.
You can use the function unpack(). For example,
$f = chr (0xb1).chr (0x5c).chr (0xbc).chr (0x41);
$val = unpack("f*0", $f);
print_r($val);
will give
Array
(
[01] => 23.545259475708
)