Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

取首字母时,能否保留完整的英文 #199

Closed
z7z opened this issue Feb 24, 2024 · 1 comment
Closed

取首字母时,能否保留完整的英文 #199

z7z opened this issue Feb 24, 2024 · 1 comment

Comments

@z7z
Copy link

z7z commented Feb 24, 2024

我想要的结果
CGV电影院 => cgvdyy

现在我用的 Pinyin::abbr($name)->join('') 得到的是
CGV电影院 => cdyy

可能是有方法,但是我文档里没看到例子,有人指导一下吗,谢谢

@overtrue
Copy link
Owner

echo Pinyin::abbr('CGV电影院', false, true)->join(''); // CGVdyy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants