Source for file modifier.adjust.php
Documentation is available at modifier.adjust.php
* -------------------------------------------------------------
* Purpose: Adjust a string to a certain length if necessary,
* optionally splitting in the middle of a word, and
* appending the $etc string or padding the string
* -------------------------------------------------------------
if (strlen($string) > $length) {
$fragment = substr($string, 0, $length+ 1);
$fragment = substr($fragment, 0, - 1);
} elseif(strlen($string)< $length) {
|