Symfony's Component "u" for strings
Aymeric Ratinaud
Posted on January 24, 2024
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".
💖 💪 🙅 🚩
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.