src/HtmlDomParserHelper.php
public function getPageFavicon()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('link[rel=shortcut], link[rel=icon], link[rel=shortcut icon]', 0);

        if ($node) {
            return $node->getAttribute('href');
        }
    }
public function getPageFavicon()
    {
        if (!$this->parser) {
            return;
        }

        $node = $this->parser->find('link[rel=shortcut], link[rel=icon], link[rel=shortcut icon]', 0);

        if ($node) {
            return $node->getAttribute('href');
        }
    }
public function getPageFavicon ( ) { if ( ! $ this -> parser ) { return ; } $ node = $ this -> parser -> find ( 'link[rel=shortcut], link[rel=icon], link[rel=shortcut icon]' , 0 ) ; if ( $ node ) { return $ node -> getAttribute ( 'href' ) ; } }
Get page favicon url

@return string url
Get page favicon url