I'm using the following to limit the amount of characters in a string
<?php $eventtitle1 = get_the_title();
$eventtitle1_str = strip_tags($eventtitle1, '');
echo substr($eventtitle1_str,0,30) . "…"; ?>
Is it possible to add the "..." if the string is more than 30 characters but not add it if it's less?
e.g
So it does this for a longer title:
"This is a longer ti..."
And it does this for a shorter title:
"This is a title"
(i.e not this - "This is a title ...")