You are here

function simple_html_dom_node::children in simplehtmldom API 5.2

Same name and namespace in other branches
  1. 6 simplehtmldom/simple_html_dom.php \simple_html_dom_node::children()
  2. 7 simplehtmldom/simple_html_dom.php \simple_html_dom_node::children()
1 call to simple_html_dom_node::children()
simple_html_dom_node::childNodes in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 125

Class

simple_html_dom_node

Code

function children($idx = -1) {
  if ($idx === -1) {
    return $this->children;
  }
  if (isset($this->children[$idx])) {
    return $this->children[$idx];
  }
  return null;
}