mirror of
https://github.com/alrayyes/wiki.git
synced 2024-12-01 15:26:23 +00:00
279 B
279 B
id | title |
---|---|
b27eb467-5ff4-494f-aea4-85000152dda9 | truncate() |
Description
Truncates string
Syntax
use function Symfony\Component\String\u;
u('Lorem Ipsum')->truncate(8, '…'); // 'Lorem I…'