PHPでダンプ

PHPの種 ブログ » intやfloatを扱う際の注意点

上記記事で取り上げた、floatの中身を見るスクリプトで

[php]
var_dump(bin2hex(strrev(pack(“d”,0.5+0,5))));
[/php]

こんな風にダンプしていました。なるほど参考になりますということでメモ。

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">