PHP code example of lixunguan / pinyin
1. Go to this page and download the library: Download lixunguan/pinyin library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lixunguan / pinyin example snippets
return Pinyin::make('我们')->firstLetter(); // 输出 wm
return Pinyin::make('我们')->full(); // 输出 women