UTILITY

excerpt()

Create a compact, word-aware excerpt.

Signature

string excerpt(string $text, int $length, string $suffix = '…')

Example

excerpt('ShortPHP is a compact developer toolkit.', 20);

Available from: 1.5.0

Reference navigation

Previous: env_int()

Next: ext()

Back to utilities