jifei / Pinyin

一个简单好用的PHP汉字转拼音类,支持获取汉字的拼音以及拼音的缩写,能准确匹配6千多个汉字。

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

支持多音字?

xnzj opened this issue · comments

commented

“重庆重要” 弄成拼音啥样子

commented

不支持多音字,这个是基于字典的。要支持多音字要基于词典,复杂度要提升不少,给你推荐一个 https://github.com/overtrue/pinyin

commented

恩,这个好。可以用在网站上了