Class: ChineseSpell
Source Location: /common/lib/util/ChineseSpell.class.php
Class ChineseSpell
Methods
string getChineseSpell(
int
$num, [string
$blank = '']
)
|
|
取一个汉字码对应的拼音
Parameters:
|
int |
$num: |
汉字码 |
|
string |
$blank: |
空白字符 |
API Tags:
string getChineseSpells(
string
$chinese, [string
$delimiter = ' '], [int
$first = 0]
)
|
|
取汉字拼音
Parameters:
|
string |
$chinese: |
要转换的汉字 |
|
string |
$delimiter: |
分隔符 |
|
int |
$first: |
是否只返回第一个 |
API Tags:
string getFirstSpell(
string
$chinese, [int
$length = 0]
)
|
|
取汉字第一个拼音
Parameters:
|
string |
$chinese: |
要转换的汉字 |
|
int |
$length: |
返回的长度 |
API Tags:
string getFullSpell(
string
$chinese, [string
$delimiter = ' '], [int
$length = 0]
)
|
|
取汉字所有拼音
Parameters:
|
string |
$chinese: |
要转换的汉字 |
|
string |
$delimiter: |
分隔符 |
|
int |
$length: |
返回的长度 |
API Tags:
|
|