Is there a way to have this variable:
$a
check whether there is a
'
before it and if there is, just add an s and if there isn't, add an
's
That way, I can put it in any template where I need to and if the name (whether it be $bbuserinfo[username] or $post[username] or whatever else I use) ends in an apotrophe, it will only add an s and do the other if there is no apostrophe.
I'm hoping to be able to use this anywhere at any time.
|