示例#1
0
 public static function getPinyinFirst($word)
 {
     return BasePinyin::letter($word);
 }
示例#2
0
 /**
  * Get the fist letters of given string.
  *
  * @param  string $string
  * @param  array  $setting
  *
  * @return string
  */
 function letter($string, $setting = [])
 {
     return Pinyin::letter($string, $setting);
 }
示例#3
0
 public static function getPinyinFirst($word)
 {
     BasePinyin::set('accent', false);
     BasePinyin::set('delimiter', '');
     return BasePinyin::letter($word);
 }