rfc:mb_ucfirst
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rfc:mb_ucfirst [2024/02/02 00:58] – Move voting phase youkidearitai | rfc:mb_ucfirst [2024/03/20 21:13] (current) – Implemented mb_ucfirst and mb_lcfirst youkidearitai | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== PHP RFC: Multibyte for ucfirst, lcfirst functions, mb_ucfirst mb_lcfirst ====== | ====== PHP RFC: Multibyte for ucfirst, lcfirst functions, mb_ucfirst mb_lcfirst ====== | ||
- | * Version: 0.1 | + | * Version: 0.1.2 |
* Date: 2024-01-16 | * Date: 2024-01-16 | ||
* Author: Author: Yuya Hamada(https:// | * Author: Author: Yuya Hamada(https:// | ||
- | * Status: | + | * Status: |
* First Published at: http:// | * First Published at: http:// | ||
Line 12: | Line 12: | ||
function mb_ucfirst(string $str, ?string $encoding = null): string | function mb_ucfirst(string $str, ?string $encoding = null): string | ||
{ | { | ||
- | return | + | return |
} | } | ||
</ | </ | ||
Line 32: | Line 32: | ||
function mb_ucfirst(string $string, ?string $encoding = null): string | function mb_ucfirst(string $string, ?string $encoding = null): string | ||
</ | </ | ||
+ | |||
+ | The first character in mb_ucfirst uses Unicode title case. | ||
< | < | ||
Line 43: | Line 45: | ||
* ngày Quốc khánh 2-9 (September 2nd National Day) | * ngày Quốc khánh 2-9 (September 2nd National Day) | ||
* tiếng Nhật (Japanese) | * tiếng Nhật (Japanese) | ||
+ | |||
+ | Another example, In Georgian should uses title case. | ||
+ | |||
+ | * mb_strtoupper(" | ||
+ | * mb_strtoupper(" | ||
+ | |||
+ | Correct case. | ||
+ | |||
+ | * mb_ucfirst(" | ||
+ | * mb_ucfirst(" | ||
===== Backward Incompatible Changes ===== | ===== Backward Incompatible Changes ===== | ||
Line 73: | Line 85: | ||
===== Voting ===== | ===== Voting ===== | ||
- | <doodle title=" | + | |
+ | <doodle title=" | ||
* Yes | * Yes | ||
* No | * No |
rfc/mb_ucfirst.1706835506.txt.gz · Last modified: 2024/02/02 00:58 by youkidearitai