Easy Tutorial
❮ Func Ftp Pwd Func Ftp Login ❯

PHP decoct() Function

PHP Math Reference Manual

Example

Convert decimal to octal:


Definition and Usage

The decoct() function converts a decimal number to an octal number.

Note: To convert an octal number to a decimal, see the octdec() function.


Syntax

Parameter Description
number Required. Specifies the decimal value to convert.

Technical Details

Return Value: A string containing the octal representation of the decimal value.
Return Type: String
--- ---
PHP Version: 4+
--- ---
❮ Func Ftp Pwd Func Ftp Login ❯