php man page for octdec

Query: octdec

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

OCTDEC(3)								 1								 OCTDEC(3)

octdec - Octal to decimal

SYNOPSIS
number octdec (string $octal_string)
DESCRIPTION
Returns the decimal equivalent of the octal number represented by the $octal_string argument.
PARAMETERS
o $octal_string - The octal string to convert
RETURN VALUES
The decimal representation of $octal_string
EXAMPLES
Example #1 octdec(3) example <?php echo octdec('77') . " "; echo octdec(decoct(45)); ?> The above example will output: 63 45
NOTES
Note The function can convert numbers that are too large to fit into the platforms integer type, larger values are returned as float in that case.
SEE ALSO
decoct(3), bindec(3), hexdec(3), base_convert(3). PHP Documentation Group OCTDEC(3)
Related Man Pages
bcpow(3) - php
intval(3) - php
hexdec(3) - php
gmp_div_q(3) - php
gmp_hamdist(3) - php
Similar Topics in the Unix Linux Community
User Guide: Posting in the Emergency Forum
Forum Video Tutorial: How to Use Code Tags
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch
Denial Of Service Attack Update
Please Welcome Nicki Paul to the Moderator Team!