Transliterate
用于转写字符串的类
自 |
1.0 |
---|---|
注意 |
phputf8 的 utf8_accents_to_ascii() 的移植 |
包 |
Joomla 框架 |
方法
utf8_latin_to_ascii
返回从 UTF-8 转写为拉丁语的字符串
utf8_latin_to_ascii( string, case) :
自 |
1.0 |
---|
参数
- 字符串
string
要转写的字符串- 案例
int
可选地指定大写或小写。默认为 0(两者)。
回应
string
转写后的字符串
属性
utf8LowerAccents
小写 UTF-8 字符及其拉丁语等效项的映射
静态
自 |
1.4.0 |
---|
类型(s)
array<string|int, mixed>
utf8UpperAccents
大写 UTF-8 字符及其拉丁语等效项的映射
静态
自 |
1.4.0 |
---|
类型(s)
array<string|int, mixed>