Home > php教程 > php手册 > body text

Pinyin extraction of Chinese characters (hair removal array version) TP5 is specially designed for extremely high efficiency

WBOY
Release: 2016-10-10 11:39:28
Original
1734 people have browsed it

Optional full spelling, first spelling, first letter, first letter capitalization, all capitalization, custom dictionary
Unzip the extend directory

Controller code

$py = new pinyinHzpy();
echo $py->zhuan('Robert Schenkan',false,false,false,'_',['罗'=>'ba','特'=>'ba']);

@param string $beizhuanhanzi The converted string.
@param boolean $zhiqushouzimu only takes the first letter of each group of pinyin.
@param boolean $shouzimudaxie Capitalize the first letter of each pinyin group.
@param boolean $quanbudaxie Convert all to uppercase.
@param string $tihuan Replacement character for non-Chinese characters 0-9a-zA-Z.
@param array $fujiazidian adds a custom dictionary, overwriting the built-in dictionary. Format: ['luo'=>'gou','bu'=>'mao']

Pinyin extraction of Chinese characters (hair removal array version) TP5 is specially designed for extremely high efficiency pinyin.zip ( 101.66 KB Download: 5 times )

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!