Skip to content

Fix for FR #34407 - ucwords and title case#706

Merged
php-pulls merged 1 commit intophp:PHP-5.4from
datibbaw:bug34407
Jul 12, 2014
Merged

Fix for FR #34407 - ucwords and title case#706
php-pulls merged 1 commit intophp:PHP-5.4from
datibbaw:bug34407

Conversation

@datibbaw
Copy link
Contributor

@datibbaw datibbaw commented Jul 2, 2014

Original feature request can be found here

@jucrouzet
Copy link

👍

Was really annoying

@BenMorel
Copy link
Contributor

BenMorel commented Jul 4, 2014

👍

I was looking for a similar feature to normalize HTTP header names, this would allow me to replace:

$header = implode('-', array_map('ucfirst', explode('-', strtolower($header))));

with:

$header = ucwords(strtolower($header), '-');

Added support for ranges like trim() has
@php-pulls php-pulls merged commit 4fc0d46 into php:PHP-5.4 Jul 12, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants