ChineseUtil icon indicating copy to clipboard operation
ChineseUtil copied to clipboard

PHP 中文工具包,支持汉字转拼音、拼音分词、简繁互转、数字、金额大写;QQ群:17916227

Results 4 ChineseUtil issues
Sort by recently updated
recently updated
newest added

` public function toChinese($number, $options = []) { if (!static::verifyNumber($number)) { throw new \InvalidArgumentException(sprintf('%s is not a valied number', $number)); } list($integer, $decimal) = explode('.', $number . '.'); if ($integer...

位置 93 行 /www/blog/vendor/yurunsoft/chinese-util/src/Chinese/FFIDriver.php } else { $library = "libchinese_util-php{$phpVersion}.so"; } } $library = $clibPath . '/' . $library; } $this->ffi = $ffi = PHPFFI::cdef(file_get_contents($clibPath . '/include.h'), $library); $ffi->init_chinese_util(); $dataPath...

question

我都不知道我这么写对不对 \Yurun\Util\Chinese::toPinyin($requestData['name'], \Yurun\Util\Chinese\Pinyin::CONVERT_MODE_PINYIN_FIRST)['pinyinFirst']??'' 还要输出下就效率慢了

yurunsoft\chinese-util\src\Chinese\Driver\Money\Memory.php 行237 `$unitIndex = ($length - 1) / 4 >> 0;` 环境 php 8.2.5,高版本对数据类型严格检查,数字为222三位时,错误提示 Implicit conversion from float 0.5 to int loses precision 建议修复兼容