lastChild() public method

Simple wrapper function that returns the last child.
public lastChild ( ) : AbstractNode
return PHPHtmlParser\Dom\AbstractNode
Example #1
0
 public function testLastChild()
 {
     $dom = new Dom();
     $dom->load('<div class="all"><p>Hey bro, <a href="google.com" data-quote="\\"">click here</a></div><br />');
     $this->assertEquals('<br />', $dom->lastChild()->outerHtml);
 }