decoct
decoct
Decimal to octal
string **decoct** int $num
Returns a string containing an octal representation of the given
argument. The largest number that can be
converted depends on the platform in use. For 32-bit platforms this is
usually in decimal resulting in
. For 64-bit platforms this is usually
in decimal resulting in
.
num``4294967295``37777777777``9223372036854775807``777777777777777777777
numDecimal value to convert
Octal string representation of
num
Voorbeeld: example
<?php
echo decoct(15) . "\n";
echo decoct(264);
?>
17
410
octdec``decbin``dechex``base_convert