Unclassified NewsBoard Code Reference

str_limit function

Limit a string to a given length and add '...' if it was truncated

function str_limit ($str, $len, $multibyte = false, $html = false);

Parameters:

multibyte  –  optional, default: false
(bool) use utf8-aware string split functions. only if current character set is UTF-8
str
len
html  –  optional, default: false

Implementation file: unb_lib/common.lib.php, line 1493

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.