Wiki

Clone wiki

Shortcode Ultimate V2 / Inner API / su_char_limit()

To returns the number of character in a string, You can use su_char_limit() function.

Example

<?php 

su_char_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 character of string.
$end_char string A text that will show after limit of text

Updated