PHP 8.3.4 Released!

decoct

(PHP 4, PHP 5, PHP 7, PHP 8)

decoctDa decimale a ottale

Descrizione

decoct(int $numero): string

Restituisce una stringa contenente una rappresentazione in ottale di un dato argomento numero. Il più grande numero che può essere convertito è 2147483647 in decimale risultante in "17777777777". Vedere anche octdec().

Example #1 Esempio per decoct()

<?php
echo decoct(15) . "\n";
echo
decoct(264);
?>

L'esempio precedente visualizzerà:

17 
410

Vedere anche octdec(), decbin(), dechex() e base_convert().

add a note

User Contributed Notes 1 note

up
-2
ethernidee at yandex dot ru
8 years ago
Negative numbers are not supported.
To Top