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