September 2001
Intermediate to advanced
768 pages
32h 45m
English
string decoct(int dec) Returns the octal notation for the given decimal argument.
Returns:
Octal number as a string
Description:
Converts the integer given by dec into a string containing its octal equivalent. The largest octal that can be calculated is 017777777777.
Version:
PHP 3, PHP 4
See also:
base_convert() bindec() decbin() dechex() hexdec() octdec()
Example:
$number = 123456; echo "The octal value of $number is ", decoct($number); |
Read now
Unlock full access