PHP Upper letter in a new sentence

Upper letter in a new sentence

<?
$text = "only a test";

$cat = strtolower($test);
$chop = chop($text);
$test = substr($text, 1, strlen($text)-1);
$f = strtoupper($chop[0]);

echo "<B>$f</B>$test";
?>