PHP decoct() Function

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

Demo :



Type No :  
Octal number is : 0

Example :

Example 1: Type Decimal No : 1
Example 2: Type Decimal No : 10
Example 3: Type Decimal No : 1000

If you need to converts an decimal number to a octal number following code useful to you.


<?php
 $decoct_no = 100;
 $result = decoct($decoct_no);
 echo $result;
?>

In the above code is used to converts an decimal number to a octal number.In the decoct() functions have used one arguments that name is int decimal_number.

Free Download Script :

If you need decoct() function demo code download from following link.

Download




Content