octdec

(PHP 3, PHP 4 , PHP 5)

octdec -- Octal to decimal

Description

int 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.

Example 1. octdec() example

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

The above example will output:

63
45

See also: decoct(), bindec(), hexdec(), and base_convert().


Sites of interest: Web Hosting : Reseller Hosting : Website Hosting : HTML Editor : Web Design Templates : Free Web Hosting : ASP code examples : PHP & MySQL Code Examples
  Copyright 2004 Evrsoft Developer Network. Privacy policy - Link to Us

Contact Evrsoft