UTILITY

truncate()

ShortPHP reference for truncate().

Signature

function truncate(string $value, int $length, string $suffix = '…'): string

Example

truncate(...);

Extension: Core

Official PHP manual ↗

Reference navigation

Previous: token()

Next: unique()

Back to utilities