I have a PHP loop that adds data into a table cell. However, I want to apply a static size to the table cell, so if more data is returned than can fit inside the cell I want th
if (strlen($str) > 100) $str = substr($str, 0, 100) . "...";