llms_trim_string( string $string, int $chars = 200, string $suffix = '...' )
Trim a string and append a suffix
Description Description
Parameters Parameters
- $string
-
(Required) Input string.
- $chars
-
(Optional) Max number of characters. Default is 200.
Default value: 200
- $suffix
-
(Optional) A suffix to append. Default is '...'.
Default value: '...'
Return Return
(string)
Source Source
File: includes/llms.functions.core.php
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |