English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Thedecoct()
The function converts a decimal number to an octal. It returns the octal string of the specified decimal.
decoct(num)
num-the decimal value to be converted.
Thedecoct()
The function returns the octal string of the specified decimal.
<?php echo decoct("70"); ?>
Output Result
106
Let's see another example-
<?php echo decoct("7878787888"); ?>
Output Result
72547141460