I reckon, if you only ever wanted $var to be 6 chrs, you could do this:
<?php
$var = 'blah blah blah';
$var - Substr( $var, 0, 6 );
echo $var;
?>
You'd get 'blah b' echoed from that.
But if you only want to know how big the string is, then what you have said would be fine.