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