Truncate string
private static function truncateString($text, $limit)
{
if (Tools::strlen($text)>$limit) {
return Tools::substr($text, 0, $limit);
}
return $text;
}
{
if (Tools::strlen($text)>$limit) {
return Tools::substr($text, 0, $limit);
}
return $text;
}
Comments
Post a Comment