public static function getFavicon($url, $attributes = [])
    {
        $attr = trim(self::arrayToString($attributes));

        if (!empty($attr)) {
            $attr = " $attr";
        }

        return sprintf(
            '<img src="https://www.google.com/s2/favicons?domain=%s"%s/>',
            urlencode($url),
            $attr
        );
    }
public static function getFavicon($url, $attributes = [])
    {
        $attr = trim(self::arrayToString($attributes));

        if (!empty($attr)) {
            $attr = " $attr";
        }

        return sprintf(
            '<img src="https://www.google.com/s2/favicons?domain=%s"%s/>',
            urlencode($url),
            $attr
        );
    }
public static function getFavicon ( $ url , $ attributes = [ ] ) { $ attr = trim ( self :: arrayToString ( $ attributes ) ) ; if ( ! empty ( $ attr ) ) { $ attr = " $attr" ; } return sprintf ( '<img src="https://www.google.com/s2/favicons?domain=%s"%s/>' , urlencode ( $ url ) , $ attr ) ; }
Get a Website favicon image.

@param string $url        website url
@param array  $attributes Optional, additional key/value attributes to include in the IMG tag

@return string containing complete image tag
Get a Website favicon image .