PHP octdec function
Like this blog? Consider exploring one of our sponsored banner ads...
octdec
(PHP 3, PHP 4, PHP 5)
octdec — Octal to decimalDescriptionnumber octdec ( string octal_string )
Returns the decimal equivalent of the octal number
represented by the octal_string argument.
The largest number that can be converted is 17777777777 or 2147483647 in
decimal.
As of PHP 4.1.0, this function can also convert larger numbers. It returns
float in that case.
Example 1. octdec() example
echo octdec('77') . "\n"; echo octdec(decoct(45));
The above example will output:
6345
See also:
decoct(),
bindec(),
hexdec(), and
base_convert().
About this entry
You’re currently reading “PHP octdec function,” an entry on BRADINO
- Published:
- 2.26.07 / 12am
- Category:
- PHP Functions
- Tags:
No comments
Jump to comment form | comments rss [?] | trackback uri [?]