An application of substr() (combined with strlen() to not truncate the value if it is not greater than 80 chars) would be something like:
$testtext = "This is a bunch of test text. I am just fillling space, so I can ensure my value goes over 80. The way this would work with the IF/THEN would be if it is over 80, it truncates the output, and appends a '...' to the end, but if it is less than 80, it just leaves it alone, and outputs it.";
IF(strlen($testtext) > 80) $testtext = substr($testtext, 0,80)."...";
echo $testtext."<br />";
$testtext = "This is a small amount of text to show how it won't get appended.";
IF(strlen($testtext) > 80) $testtext = substr($testtext, 0,80)."...";
echo $testtext;
tommynanda, just out of curiosity, I am interested in knowing your thoughts when you say "this is not a true solution". I have used it as a "true solution" in the past with no problems... except if my input had HTML in it, in which case, I am stripping it anyhow...