Trims a string to a specific length. If the string is longer than $maxlen, dots are inserted ("...") right before $maxlen.
Example: $string = "This is a simple test"; echo cApiStrTrimHard ($string, 15);
This would output "This is a si...", since the string is longer than $maxlen and the resulting string matches 15 characters including the dots.
Deprecated: [2015-05-21] use cString::trimHard() instead
Copyright: four for business AG <www.4fb.de>
Author: Timo Hummel
Located at includes/functions.api.string.php
||The string to operate on|
||The maximum number of characters|
||The resulting string|