mirror of
https://github.com/alrayyes/wiki.git
synced 2024-11-29 14:36:22 +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…'