Files
archived-doc-pt-br/reference/spl/arrayobject/construct.xml
Richard Quadling 0ebda4eac7 sgml-default-dtd-file:"~/.phpdoc/manual.ced"
git-svn-id: https://svn.php.net/repository/phpdoc/pt_BR/trunk@314030 c90b9560-bf6c-de11-be94-00142212c4b1
2011-08-01 12:21:02 +00:00

100 lines
2.1 KiB
XML

<?xml version='1.0' encoding='iso-8859-1'?>
<!-- EN-Revision: n/a Maintainer: diogo Status: ready -->
<refentry xml:id="arrayobject.construct" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>ArrayObject::__construct</refname>
<refpurpose>Constrói um novo objeto array</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<constructorsynopsis>
<methodname>ArrayObject::__construct</methodname>
<methodparam><type>mixed</type><parameter>input</parameter></methodparam>
</constructorsynopsis>
<para>
Constrói um novo <type>object</type> array.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>input</parameter></term>
<listitem>
<para>
O parâmetro <parameter>input</parameter> aceita um
<type>array</type> ou um outro <classname>ArrayObject</classname>.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemplo de <function>ArrayObject::__construct</function></title>
<programlisting role="php">
<![CDATA[
<?php
$array = array('1' => 'um',
'2' => 'dois',
'3' => 'três');
$arrayobject = new ArrayObject($array);
var_dump($arrayobject);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
object(ArrayObject)#1 (3) {
[1]=>
string(2) "um"
[2]=>
string(4) "dois"
[3]=>
string(4) "três"
}
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- 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:"~/.phpdoc/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
-->