public static function anchor(string $title, string $url = '', array $attributes = null) : string
    {
        // Add link
        if ($url !== '') $attributes['href'] = $url;
        return '<a'.Html::attributes($attributes).'>'.$title.'</a>';
    }
public static function anchor(string $title, string $url = '', array $attributes = null) : string
    {
        // Add link
        if ($url !== '') $attributes['href'] = $url;
        return '<a'.Html::attributes($attributes).'>'.$title.'</a>';
    }
public static function anchor ( string $ title , string $ url = '' , array $ attributes = null ) : string { // Add link if ( $ url !== '' ) $ attributes [ 'href' ] = $ url ; return '<a' . Html :: attributes ( $ attributes ) . '>' . $ title . '</a>' ; }
Create HTML link anchor.

echo Html::anchor('About', 'http://sitename.com/about');

@param string $title Anchor title
@param string $url   Anchor url
@param array  $attributes Anchor attributes
@return string
Create HTML link anchor .