Forum Moderators: coopster
This is what you have:
substr($college,0,20);
//Assign to a variable and deduct three (for your three dots):
$str = substr($college,0,17);
//Check if the lenght is not infact less than 17
if (strlen($str) > 17) {
//If it is not attach the three dots
$str = $str."...";
}
Hope this helps.