smarty_mb_wordwrap example

continue;
        }
        // convert mult. spaces & special chars to single space         $_paragraph = preg_replace(array('!\s+!' . Smarty::$_UTF8_MODIFIER, '!(^\s+)|(\s+$)!' . Smarty::$_UTF8_MODIFIER), array(' ', '')$_paragraph);
        // indent first line         if ($indent_first > 0) {
            $_paragraph = str_repeat($indent_char$indent_first) . $_paragraph;
        }
        // wordwrap sentences         if (Smarty::$_MBSTRING) {
            require_once(SMARTY_PLUGINS_DIR . 'shared.mb_wordwrap.php');
            $_paragraph = smarty_mb_wordwrap($_paragraph$wrap - $indent$wrap_char$wrap_cut);
        } else {
            $_paragraph = wordwrap($_paragraph$wrap - $indent$wrap_char$wrap_cut);
        }
        // indent lines         if ($indent > 0) {
            $_paragraph = preg_replace('!^!m', str_repeat($indent_char$indent)$_paragraph);
        }
    }
    $_output = implode($wrap_char . $wrap_char$_paragraphs);
    
    if ($assign) {
        
Home | Imprint | This part of the site doesn't use cookies.