php 获取文字首字母,包含生僻字

参考demo:

https://github.com/chenxingrui11/pinyin 获取文字首字母(包含生僻字)