Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[String] Add the reverse() method#35091
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
Uh oh!
There was an error while loading.Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(with a minor comment)
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Thank you@fancyweb. |
This PR was merged into the 5.1-dev branch.Discussion----------[String] Add the reverse() method| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -Allows to easily reverse a string since `mb_strrev` does not exist.Commits-------c369598 [String] Add the reverse method
This PR was merged into the 5.1-dev branch.Discussion----------[Inflector][String] Move Inflector in String| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| Deprecations? | yes| Tickets |https://github.com/orgs/symfony/projects/1#card-30499514| License | MIT| Doc PR | -Needs#35091.Should we have a standalone inflector (like the Slugger) or 2 new methods (pluralize and singularize) on the AbstractString class? I implemented both but since we only handle English I finally preferred the first one.TODO (after the "move" is OK):- [x] Deprecate the Inflector component- [x] Use the String inflector in Symfony's codeCommits-------9c6a5c0 [String] Move Inflector in String
Allows to easily reverse a string since
mb_strrev
does not exist.