Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function cutString($input, $length) {
- switch($input) {
- case (strlen($input) > $length ? $input : !$input): $str = substr($input, 0, $length)."..."; break;
- default: $str = $input;
- }
- return $str;
- }
Add Comment
Please, Sign In to add comment