Here's an easy one (I think):
When echoing the variable, I want to insert a character (let's say a dash"-") before and/or after the word(s).
<?php echo $whatever; ?>
What's the easiest and most flexible method for this that won't print the character if there's no variable?