早速ですが、PHPのキモい仕様のお時間です。

早速ですが、PHPのキモい仕様のお時間です。 – ito.tetsunosuke/notebook

以下のスクリプトの実行結果は?

echo (int) ((0.1 0.7) * 10);

答え:7

うーむ。こういうことらしいのですが、うっかりやってしまいそうで怖いですね。

関連する記事:

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="">