Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/class.domnodelist.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.dom.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'class.domnodelist.php',
1 => 'DOMNodeList',
),
'up' =>
array (
0 => 'book.dom.php',
1 => 'Document Object Model',
),
'prev' =>
array (
0 => 'domnode.replacechild.php',
1 => 'DOMNode::replaceChild',
),
'next' =>
array (
0 => 'domnodelist.item.php',
1 => 'DOMNodelist::item',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">The DOMNodeList class</h1>
<div class="partintro">
<div id="domnodelist.synopsis" class="section">
<h2 class="title">Class synopsis</h2>
<div class="classsynopsis">
<div class="ooclass"><b class="classname">DOMNodeList</b></div>
<div class="classsynopsisinfo">
<span class="ooclass">
<b class="classname">DOMNodeList</b>
</span>
{</div>
<div class="classsynopsisinfo classsynopsisinfo_comment">/* Properties */</div>
<div class="fieldsynopsis">
<span class="modifier">readonly</span>
<span class="modifier">public</span>
<span class="type">int</span>
<var class="varname"><a href="class.domnodelist.php#domnodelist.props.length">$length</a></var>
;</div>
<div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div>
<div class="methodsynopsis dc-description">
<span class="type">DOMNode</span> <span class="methodname"><a href="domnodelist.item.php" class="function">DOMNodelist::item</a></span>
( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$index</tt></span>
)</div>
}</div>
</div>
<div id="domnodelist.props" class="section">
<h2 class="title">Properties</h2>
<dl>
<dt id="domnodelist.props.length" class="varlistentry">
<span class="term"><var class="varname">length</var></span>
</dt><dd class="listitem">
<p class="para">
The number of nodes in the list. The range of valid child node
indices is 0 to <i>length - 1</i> inclusive.
</p>
</dd>
</dl>
</div>
</div>
<h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="domnodelist.item.php">DOMNodelist::item</a> — Retrieves a node specified by index</li></ul>
</div>
<?php manual_footer(); ?>