|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2006-02-07 02:47 UTC] alex at agileware dot net
Description:
------------
mb_convert_case with MB_CASE_TITLE capitalises the 's' after an apostrophe. It could also optionally accept an array of words not to change, such as 'a', 'at', 'in', 'of', etc.
Reproduce code:
---------------
<?php
print mb_convert_case("THE APOSTROPHE'S 'S' SHOULD NOT BE CAPITALISED", MB_CASE_TITLE);
?>
Expected result:
----------------
The Apostrophe's 'S' Should Not Be Capitalised
Actual result:
--------------
The Apostrophe'S 'S' Should Not Be Capitalised
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 17:00:02 2025 UTC |
Description: ------------ mb_convert_case with MB_CASE_TITLE capitalises the 's' after an number. Reproduce code: --------------- <?php print mb_convert_case("IN THE 5TH CENTURY NOTING WAS CAPITALISED", MB_CASE_TITLE); ?> Expected result: ---------------- In The 5th Century Noting Was Capitalised Actual result: -------------- In The 5Th Century Noting Was Capitalised