![Trending Articles on Technical and Non Technical topics](/images/trending_categories.jpeg)
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
decoct() function in PHP
The decoct() function converts a decimal number to an octal. It Returns an octal string of the specified decimal.
Syntax
decoct(num)
Parameters
num − The decimal value to convert.
Return
The decoct() function Returns an octal string of the specified decimal.
Example
<?php echo decoct("70"); ?>
Output
106
Let us see another example −
Example
<?php echo decoct("7878787888"); ?>
Output
72547141460
Advertisements