(PHP 4, PHP 5, PHP 7, PHP 8)
decoct — 10 進数を 8 進数に変換する
引数 num
を 8 進数表現した文字列を返します。
変換出来る最大の数字はプラットフォームによって異なります。
32 ビットプラットフォームでは、通常は十進数の 4294967295
であり、
これは 37777777777
を返します。
64 ビットプラットフォームでは、通常は十進数の
9223372036854775807
であり、これは
777777777777777777777
を返します。
num
変換したい 10 進数値。
num
を 8 進文字列で表した値を返します。
例1 decoct() の例
<?php
echo decoct(15) . "\n";
echo decoct(264);
?>
上の例の出力は以下となります。
17 410
Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!
Check out: eBank.nz (Art Generator) |
Netwrck.com (AI Tools) |
Text-Generator.io (AI API) |
BitBank.nz (Crypto AI) |
ReadingTime (Kids Reading) |
RewordGame |
BigMultiplayerChess |
WebFiddle |
How.nz |
Helix AI Assistant