xoops_substr

Returns the portion of string specified by the start and length parameters. If $trimmarker is supplied, it is appended to the return string. This function works fine with multibyte characters if mb_* functions exist on the server.

Parameters
string $str #
int $start #
int $length #
string $trimmarker = '...' #
Returns
string