DEV Community

Aymeric Ratinaud
Aymeric Ratinaud

Posted on

Symfony's Component "u" for strings

I'm discovering Symfony's Component "u".

By setting a string as a parameter, it's converted into an object and processing can be performed. For example u('ipsum dolor sit amet')->title(true); returns "Ipsum Dolor Sit Amet".

https://symfony.com/doc/current/components/string.html

Top comments (0)