PHP decoct() functionPhp decoct() is important predefine mathematical function. It is used to convert decimal number to octal number. Syntax:
Example 1Output: Your Decimal number is : 15 By using 'decoct()'function, your Octal number is :17 Example 2Output: Your Decimal number is : 264 By using 'decoct()'function, your Octal number is :410 Example 3Output: Your Decimal number is : 30 By using 'decoct()'function, your Octal number is :36 Example 4Output: Your Decimal number is : 70 By using 'decoct()'function, your Octal number is :106 Example 5Output: Your Decimal number is : 9999 By using 'decoct()'function, your Octal number is :23417
Next TopicPHP Math
|