Location: PHPKode > scripts > WH Social > wh_social/framework/functions/wordcut.php
<?php

    function wordCut($text, $maxlen = 30, $suffix = '') {
        define('C_DELIMITER', '#wordCut#');

    if(strlen($text) < $maxlen) return $text;

        $trunc = array(explode(C_DELIMITER, wordwrap($text, $maxlen, C_DELIMITER, TRUE)));

        return trim("{$trunc} {$suffix}");
        }

?>
Return current item: WH Social