Menu Riverview Church

OCTDEC

Octal to decimal

SYNTAX

octdec ( string $octal_string ) : number

PARAMETERS

octal_string

The octal string to convert. Any invalid characters in octal_string are silently ignored.

OCTAL DECIMAL
0 0
1 1
2 2
... ...
777777777777777777776 9223372036854775806
777777777777777777777 9223372036854775807 (largest signed integer)
1000000000000000000000 9223372036854775808
... ...
1777777777777777777776 18446744073709551614
1777777777777777777777 18446744073709551615 (largest unsigned integer)

RETURN

The decimal representation of octal_string

EXAMPLES

1

0
0

2

1

3

2

4

9223372036854775806

5

9223372036854775807

6

9223372036854775808

7

18446744073709551616

8

18446744073709551616

PHP