Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions reference/dom/domnamednodemap/getnameditem.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ $id = $doc->firstChild->attributes->getNamedItem('id');
</programlisting>
</example>
<example>
<simpara>
Items can be also accessed with array syntax:
</simpara>
<title>Accessing attribute with array syntax</title>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -73,11 +71,9 @@ $id = $doc->firstChild->attributes['id'];
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><methodname>DOMNamedNodeMap::getNamedItemNS</methodname></member>
</simplelist>
</para>
<simplelist>
<member><methodname>DOMNamedNodeMap::getNamedItemNS</methodname></member>
</simplelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Expand Down
8 changes: 2 additions & 6 deletions reference/dom/domnodelist/item.xml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ for ($i = 0; $i < $items->length; $i++) {
</programlisting>
</example>
<example>
<simpara>
Items can be also accessed with array syntax:
</simpara>
<title>Accessing item with array syntax</title>
<programlisting role="php">
<![CDATA[
<?php
Expand All @@ -87,9 +85,7 @@ for ($i = 0; $i < $items->length; $i++) {
</programlisting>
</example>
<example>
<para>
Alternatively, you can use &foreach;, which is a much more convenient way:
</para>
<title>Traversing items with &foreach;</title>
<programlisting role="php">
<![CDATA[
<?php
Expand Down