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がまったく新しいです。どこかから質問が来ました。問題は、次のコードの出力はどうなるかということでした。
<?php echo 0050; ?>
結果は 40 を示しています。これに関する詳細情報が必要です。0050とは?
05040 (基数 10) の 8 進数 (基数 8) リテラルです。
050
http://php.net/manual/en/language.types.integer.php
0050 は 8 進数の値で、基数 8 の数値システムです。数値は、最初に 10 進表現に変換されてから出力されます。