Symfony's Component "u" for strings

aratinau

Aymeric Ratinaud

Posted on January 24, 2024

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

💖 💪 🙅 🚩
aratinau
Aymeric Ratinaud

Posted on January 24, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related