Home >> Snippet List >> Snippet

Name
Add a period at the end of a string if there isn't one there already
Description
Simple way to add a period at the end of a string or sentence if there isn't one there already
PHP Snippet
// if there isn't a period at the end of $string, add one
IF(SUBSTR($string, -1) != '.'){$string.= '.';}