Home >Backend Development >PHP Tutorial > 把汉字转换为拼音,并让每个汉字的首字母大写,该如何解决

把汉字转换为拼音,并让每个汉字的首字母大写,该如何解决

WBOY
WBOYOriginal
2016-06-13 12:31:251148browse

把汉字转换为拼音,并让每个汉字的首字母大写
例如大连,我转换为dalian,字母让转换为D,l转换为L,并且其他的字母还是小写

Statement:
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