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)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay