<?php

include 'ChinesePinyin.class.php';

$Pinyin = new ChinesePinyin();

$words = '汉字转成拼音类';
echo '<h2>'.$words.'</h2>';



echo '<p>转成带有声调的汉语拼音<br/>';
$result = $Pinyin->TransformWithTone($words);
echo $result,'</p>';



echo '<p>转成带无声调的汉语拼音<br/>';
$result = $Pinyin->TransformWithoutTone($words,' ');
echo($result),'</p>';



echo '<p>转成汉语拼音首字母<br/>';
$result = $Pinyin->TransformUcwords($words);
echo($result),'</p>';

  类文件在网盘中有,搜索"PHP汉字转拼音ChinesePinyin.rar"

相关文章:

  • 2021-09-19
  • 2022-12-23
  • 2022-12-23
  • 2021-07-13
  • 2022-12-23
  • 2022-12-23
  • 2021-11-20
  • 2021-11-17
猜你喜欢
  • 2022-12-23
  • 2021-12-23
  • 2022-01-21
  • 2021-08-24
  • 2021-06-18
  • 2021-08-13
  • 2021-08-31
相关资源
相似解决方案