Wiki
Clone wikiShortcode Ultimate V2 / Inner API / su_word_limit()
To returns the number of words in a string, You can use su_word_limit() function.
Example
#!php <?php su_word_limit($str, $limit, $end_char); ?>
Params
Param Name | Type | Description |
---|---|---|
$str | string | any content string that you want to limit by number($limit) |
$limit | number | number of word of string. |
$end_char | string | A text that will show after limit of text |
Updated