if ($chunk == '') { $chunk = substr($str,0,$maxChar).'...'; }