View Single Post
Old 2006-01-04, 03:01 AM   #18
kenny
No matter how good you are at something, there's always about a million people better than you
 
Join Date: Nov 2005
Posts: 233
Quote:
Originally Posted by ClickBuster
Man, don't know how your script is coded, but if it's PHP maybe the following piece of code will be useful:

Code:
<?php
 $end = $description[strlen($description) - 1];
 $end != "." ? $description .= "." : 1;
?>
Assuming that the name of the variable is $description, this code will put a period at the end, in case the last char is not a period.

This is the route I would go if I wanted to insure periods.
kenny is offline   Reply With Quote