Split site title and apply different classes

Figured it out!

function split_title($title) {
$title = get_bloginfo('name');
$word = substr($title, 0 , 5);
$press = substr($title, 5);

$html = "{$word}<span class="bold">{$press}</span>";

return $html;
}

And then <?php echo split_title($title); ?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)