发布网友 发布时间:2022-04-06 01:17
共1个回答
热心网友 时间:2022-04-06 02:46
<?php
function NumToChinas( $Num = 0 ) {
$ChinasArray = array('零', '一', '二', '三', '四', '五', '六', '七', '八', '九');
$ChinaString = '';
for ( $i = 0; $i < strlen( $Num ); $i++ ) {
$Keys = substr($Num, $i, 1 );
$ChinaString .= $ChinasArray[ $Keys ];
}
return $ChinaString;
}
echo NumToChinas( 5706078 );
效果: