PHP octdec() Function

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

Demo :



Type No :  
Decimal number is : 0

Example :

Example 1: Type No : 36
Example 2: Type No : 12
Example 3: Type No : 3063

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


<?php
 $octdec_no =12;
 $result = octdec($octdec_no);
 echo $result;
?>

In the above code is used to converts an octal number to a decimal number.In the octdec() functions have used one arguments that name is string octal_number.

Free Download Script :

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

Download




Content