PHP 5.6.0RC3 is available

decoct

(PHP 4, PHP 5)

decoctDecimal to octal

Descrierea

string decoct ( int $number )

Returns a string containing an octal representation of the given number argument. The largest number that can be converted is 4294967295 in decimal resulting to "37777777777".

Parametri

number

Decimal value to convert

Valorile întoarse

Octal string representation of number

Exemple

Example #1 decoct() example

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

Exemplul de mai sus va afișa:

17
410

Vedeți de asemenea

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top