Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to uppercase words with a custom delimeter. #11

Merged
merged 1 commit into from Nov 6, 2015

Conversation

Projects
None yet
3 participants
@nubs
Copy link
Contributor

commented May 6, 2014

PHP's builtin ucwords() is generally useful, but there are oftem times
where whitespace isn't the only word separator you want to use to
capitalize on. This ucwords() method makes it easy to handle arbitrary
single-character delimeters like hyphen (included by default), but also
any other configurable characters.

Add a method to uppercase words with a custom delimeter.
PHP's builtin ucwords() is generally useful, but there are oftem times
where whitespace isn't the only word separator you want to use to
capitalize on.  This ucwords() method makes it easy to handle arbitrary
single-character delimeters like hyphen (included by default), but also
any other configurable characters.

@Ocramius Ocramius added this to the v1.1.0 milestone Aug 31, 2015

guilhermeblanco added a commit that referenced this pull request Nov 6, 2015

Merge pull request #11 from nubs/ucwords
Add a method to uppercase words with a custom delimeter.

@guilhermeblanco guilhermeblanco merged commit 90b2128 into doctrine:master Nov 6, 2015

1 check passed

continuous-integration/travis-ci The Travis CI build passed
Details
@nubs

This comment has been minimized.

Copy link
Contributor Author

commented Nov 6, 2015

Thanks!

chadicus added a commit to chadicus/util-string-php that referenced this pull request Feb 21, 2018

Remove Strings::ucwords
The ucwords method was added to the `doctrine/inflector` package by @nubs with [this PR](doctrine/inflector#11)
The inflector package as been added to the suggest composer config as a replacement

chadicus added a commit to chadicus/util-string-php that referenced this pull request Feb 22, 2018

Remove Strings::ucwords
The ucwords method was added to the `doctrine/inflector` package by @nubs with [this PR](doctrine/inflector#11)
The inflector package as been added to the suggest composer config as a replacement
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.