\fastPinyin

中文转拼音类

Summary

Methods
Properties
Constants
get()
No public properties found
No constants found
No protected methods found
$keys
$values
N/A
_pinyin()
_u2_utf8_gb()
No private properties found
N/A

Properties

$keys

$keys : 

Type

$values

$values : 

Type

Methods

get()

get(string  $chinese, boolean  $onlyfirst = false, string  $delimiter = '',   $ucfirst = false, string  $charset = 'utf-8') : string

获取文字的拼音

Parameters

string $chinese

中文汉字

boolean $onlyfirst

是否只返回拼音首字母

string $delimiter

分隔符

$ucfirst
string $charset

文字编码

Returns

string

_pinyin()

_pinyin(  $num,   $data) 

Parameters

$num
$data

_u2_utf8_gb()

_u2_utf8_gb(  $c) 

Parameters

$c