扫码关注官方订阅号
谁有php 汉字转拼音的 代码
要能识别同音字
学习是最好的投资!
多音字很难搞定的~ github上看到的https://github.com/ohfang/HanziToPinyin,你参考下
拿 Google 翻译转,如这个
>>> trs '{zh-CN=@zh}' 张长江长个儿了 Zhāngchángjiāng zhǎng gè'erle
不考虑多音字汉字转拼音的代码:https://gist.github.com/lizheming/11166530
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
多音字很难搞定的~
github上看到的https://github.com/ohfang/HanziToPinyin,你参考下
拿 Google 翻译转,如这个
不考虑多音字汉字转拼音的代码:https://gist.github.com/lizheming/11166530