You are here

function simple_html_dom_node::first_child in simplehtmldom API 7

Same name and namespace in other branches
  1. 5.2 simplehtmldom/simple_html_dom.php \simple_html_dom_node::first_child()
  2. 6 simplehtmldom/simple_html_dom.php \simple_html_dom_node::first_child()
1 call to simple_html_dom_node::first_child()
simple_html_dom_node::firstChild in simplehtmldom/simple_html_dom.php

File

simplehtmldom/simple_html_dom.php, line 132

Class

simple_html_dom_node

Code

function first_child() {
  if (count($this->children) > 0) {
    return $this->children[0];
  }
  return null;
}