You are here : phpmathoctdec

octdec() - math

Returns the decimal equivalent of the octal number
   represented by the octal_string argument.
Parameters :
  • octal_string - The octal string to convert

  • Syntax

    number octdec
         ( string $octal_string
        )


    Example

    <?phpecho octdec('77') . "\n";echo octdec(decoct(45));?>


    Output / Return Value


    Limitations


    Alternatives / See Also


    Reference