public function getTitle()
    {
        $t = $this->dom->getElementsByTagName('title')->item(0);
        if ($t == null) {
            return null;
        } else {
            return $t->nodeValue;
        }
    }
public function getTitle()
    {
        $t = $this->dom->getElementsByTagName('title')->item(0);
        if ($t == null) {
            return null;
        } else {
            return $t->nodeValue;
        }
    }
public function getTitle ( ) { $ t = $ this -> dom -> getElementsByTagName ( 'title' ) -> item ( 0 ) ; if ( $ t == null ) { return null ; } else { return $ t -> nodeValue ; } }
Get the page title of the HTML document

@return null|string
Get the page title of the HTML document