|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-12-03 15:23 UTC] felipe@php.net
[2011-04-08 21:16 UTC] jani@php.net
-Package: Feature/Change Request
+Package: Strings related
[2021-09-21 12:04 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-09-21 12:04 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 20:00:01 2025 UTC |
Description: ------------ In the manual it is stated that a ucwords will uppercase any words that are preceded by a space. Maybe this should be changed to include any words that are preceded by a bracket as well, such as "... (words inside)". I know that one can use mb_convert_case to do this, but one might argue that ucwords implies this functionality, and it could come to be expected from it (until you read the manual page). Reproduce code: --------------- <? print ucwords("outside of (inside of)"); ?> Expected result: ---------------- Outside Of (Inside Of) Actual result: -------------- Outside Of (inside Of)