2002-04-15 00:12:54 +00:00
|
|
|
<?xml version="1.0" encoding="iso-8859-1"?>
|
2007-06-20 22:25:43 +00:00
|
|
|
<!-- $Revision: 1.12 $ -->
|
|
|
|
<refentry xml:id="function.octdec" xmlns="http://docbook.org/ns/docbook">
|
2007-03-31 10:43:52 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>octdec</refname>
|
|
|
|
<refpurpose>Octal to decimal</refpurpose>
|
|
|
|
</refnamediv>
|
2007-03-31 11:20:55 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-03-31 10:43:52 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>number</type><methodname>octdec</methodname>
|
|
|
|
<methodparam><type>string</type><parameter>octal_string</parameter></methodparam>
|
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
Returns the decimal equivalent of the octal number
|
|
|
|
represented by the <parameter>octal_string</parameter> argument.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-03-31 11:20:55 +00:00
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-03-31 19:18:23 +00:00
|
|
|
<term><parameter>octal_string</parameter></term>
|
2007-03-31 11:20:55 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2007-03-31 19:18:23 +00:00
|
|
|
The octal string to convert
|
2007-03-31 11:20:55 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2007-03-31 19:18:23 +00:00
|
|
|
The decimal representation of <parameter>octal_string</parameter>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
|
|
&reftitle.changelog;
|
|
|
|
<para>
|
|
|
|
<informaltable>
|
|
|
|
<tgroup cols="2">
|
|
|
|
<thead>
|
|
|
|
<row>
|
|
|
|
<entry>&Version;</entry>
|
|
|
|
<entry>&Description;</entry>
|
|
|
|
</row>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<row>
|
|
|
|
<entry>Since 4.1.0</entry>
|
|
|
|
<entry>
|
|
|
|
The function can now convert numbers that are too large to
|
|
|
|
fit into the platforms <type>integer</type> type, larger values
|
|
|
|
are returned as <type>float</type> in that case.
|
|
|
|
</entry>
|
|
|
|
</row>
|
|
|
|
</tbody>
|
|
|
|
</tgroup>
|
|
|
|
</informaltable>
|
2007-03-31 11:20:55 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
|
|
&reftitle.examples;
|
|
|
|
<para>
|
2007-03-31 19:18:23 +00:00
|
|
|
<example>
|
|
|
|
<title><function>octdec</function> example</title>
|
|
|
|
<programlisting role="php">
|
|
|
|
<![CDATA[
|
|
|
|
<?php
|
|
|
|
echo octdec('77') . "\n";
|
|
|
|
echo octdec(decoct(45));
|
|
|
|
?>
|
|
|
|
]]>
|
|
|
|
</programlisting>
|
|
|
|
&example.outputs;
|
|
|
|
<screen>
|
|
|
|
<![CDATA[
|
|
|
|
63
|
|
|
|
45
|
|
|
|
]]>
|
|
|
|
</screen>
|
|
|
|
</example>
|
2007-03-31 11:20:55 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
2007-03-31 19:18:23 +00:00
|
|
|
<member><function>decoct</function></member>
|
|
|
|
<member><function>bindec</function></member>
|
|
|
|
<member><function>hexdec</function></member>
|
|
|
|
<member><function>base_convert</function></member>
|
2007-03-31 11:20:55 +00:00
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-03-31 10:43:52 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"../../../../manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|