Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PHP の BCMath 関数で INT 型の変数を使用しても安全ですか?
例:
<?php $a = 1; $b = "1"; echo bcadd($a,$b,0); ?>
これは機能しているように見えますが、これを行っても安全ですか? または、たとえば PHP が INT を int 値以外のものとして解釈できるというリスクがありますか (16 進値などについて考えています)。
ありがとう !